History log of /frameworks/base/tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a4d7ad8663e624d46f53ac0e5948348348d82204 06-Apr-2016 Diego Perez <diegoperez@google.com> Fix rect shadow detection

ViewGroup_Delegate was trying to use a rect shadow even in cases where
we needed to use a path. This caused that using a ToggleButton would
throw an exception with radius < 0.
Also, changed the tests so we can detect certain render errors and
ignore other (like known fidelity warnings).

Change-Id: I900d45f9efa892ad0aebc8f4ef73fc9f21ab9d92
/frameworks/base/tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java
dbc7ca0bac64e6f0e6f8463ac8e3d43dfac27eae 20-Apr-2015 Deepanshu Gupta <deepanshu@google.com> Fix view outline for shadows in LayoutLib.

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
/frameworks/base/tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java
00c2adf5db17ec2ab8c6709c5afde503cf6ea273 04-Feb-2015 Deepanshu Gupta <deepanshu@google.com> Better shadows.

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
/frameworks/base/tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java
ada8590547348b77d8cbd56abdb8fadb3e72c015 13-Mar-2015 Deepanshu Gupta <deepanshu@google.com> Fix AppCompat action bar theming.

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
/frameworks/base/tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java
0dfba38010dc3d3dbab5801427726f252113ac6c 04-Feb-2015 Diego Perez <diegoperez@google.com> Do not paint shadow if outside of the clip area

Change-Id: I064ccc1d1b206a29d9d0db1384782cb5dd5c65ca
/frameworks/base/tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java
796e9b7f9910f2ba8133cdb6f137107585b2e5fa 05-Nov-2014 Deepanshu Gupta <deepanshu@google.com> Add primitive shadows support to LayoutLib

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
/frameworks/base/tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java