d88c717b4e124e435e54bf1542774aa100773c3e |
|
29-Mar-2017 |
Diego Perez <diegoperez@google.com> |
Make layoutlib more lenient with recoverable errors In many cases, throwing an exception will stop the inflation or rendering of a layout. Sometimes, we could recover from some of the failures and render a layout that is "usable". I've done a first pass trying to follow the following rules: - Try simple recoveries by choosing sensible defaults. Not trying complex recoveries. - Only recover if the exception is not part of the class behaviour. Avoided removing declared exceptions or exceptions that are expected by the framework. - I've kept assertions in place so, in most cases, the behaviour will be almost identical to the previous one with assertions enabled. Test: Checked with existing tests Change-Id: I0001fdd3c808cf405c4eb8d734b9bbe63493e05c
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/FrameworkActionBar.java
|
b1484862e2367d87d3ccbd0fd0a6d2598ed5918a |
|
22-Jul-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Move the layout code out of RenderSessionImpl. Also, switch to using a RelativeLayout from a LinearLayout. The change will help in future when enabling transparent status and nav bar. Change-Id: Ie4db5d28313f1c5ef775603788598a56409f92c7
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/FrameworkActionBar.java
|
476e582d2ffdf25102d4c55f8c242baa3d21d37f |
|
22-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Change nullity annotations. Switch from using tools nullity annotations (com.android.annotations) to android framework annotations (android.annotation). A new sdk-common prebuilt is required for LayoutLib tests. The new sdk-common requires an updated tools-common. The updated tools-common doesn't have nullity annotations. So, instead of adding the annotation dependency, just reuse the platform ones. This also paves the way to include other platform annotations like IdRes etc. Change-Id: I87b8f767d3681d914abe7d1329e26a87f49f50a7
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/FrameworkActionBar.java
|
224e931fed1220f175805fdec71a882649270aa7 |
|
16-Jan-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Limited AppCompat support Change-Id: I4ac7234c9533b9f47f070335c4cb6ae605d8a89f
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/FrameworkActionBar.java
|