LayoutLib: fix clipping issues.

There were two issues:
- Graphics2D.setClip only works on rectangular shapes.
  This means doing a setClip on a non rectangular shape should
  basically reset the clip and intersect with the new shape.

- the current clip can be null, so the combineShape method
  must handle it.

Change-Id: Id2cd7475e991d8b533ff2e8850cc2c27663f9e52
3 files changed
tree: c82e8fda0697e9a137e33d7229f8bbe368841d2c
  1. bridge/
  2. create/
  3. .gitignore
  4. Android.mk
  5. README