summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix view outline for shadows in LayoutLib.Deepanshu Gupta2015-04-271-8/+4
| | | | | | | | Set the bounds on the drawable before getting the view outline for shadow. Also, reuse the temp outline object in AttachInfo rather than allocating a new one each time. Change-Id: I69793d38d60c5b9f9050569f2b22fbc7b90620bf
* Better shadows.Deepanshu Gupta2015-03-241-69/+21
| | | | | | | | | Better shadows for rectangles and rounded rectangles (includes circles). The shadow painting code is mostly from CardView library, but modified heavily since CardView needs to draw the shadow inside view bounds. Change-Id: I88c9f19b1c16839b8d6db6df2bebff126fa5a9a3
* Fix AppCompat action bar theming.Deepanshu Gupta2015-03-161-3/+1
| | | | | | | | | | | | Use themed context to inflate the action bar when AppCompat is used. Also fix minor issues exposed as a result. - Set project callback when LayoutInflater is created by LayoutInflater.from(context). - Remove duplication of code to get base context from context wrapper. Bug: http://b.android.com/159711 Change-Id: I379ba2ba71c0ef547460987c3aa5db521c7de967
* Do not paint shadow if outside of the clip areaDiego Perez2015-02-041-2/+7
| | | | Change-Id: I064ccc1d1b206a29d9d0db1384782cb5dd5c65ca
* Add primitive shadows support to LayoutLibDeepanshu Gupta2014-11-071-0/+205
The shadows rendered are not the same as rendered by the framework. The main purpose of the shadows here is let the user know when shadows will be cast. Currently rectangular shadows are available in only two intensities. Any elevation below 10dp uses one shadow and any elevation over 10 dp uses the other. Also, even though the code for arbitrary shapes exist, it doesn't quite work yet. No shadows are visible when that code is run. Change-Id: Ie8235ffccf1d3809713f5d8f82afde434817d6b2