History log of /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5fe96f847cc6b35510cd6e97777c8b8b75d94671 17-Jul-2017 Diego Perez <diegoperez@google.com> getColorStateList should apply theme overlays

Bug: 37324292
Test: Added new test for state lists and overlays
Change-Id: I280a8b31d641ce4d14f4cc3095e8d954d72b1dd6
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
0609785e6f839bfd27e33fa2630e6a1c12be9a20 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/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
3c5e3381983b1f2e98560a7bdbaadd4e7491144c 01-Mar-2017 Diego Perez <diegoperez@google.com> Rename android.os.Build so it can be dynamically generated

This will allow the android.os.Build class to be generated dynamically
from the Studio side.
In order to allow the "refactoring" of classses like android.os.Build,
Create needed to be modified.

While adding the test, I've also done a small clean-up of the
AsmGeneratorTest to re-use some code.

Bug: http://b.android.com/210345
Test: Added new test to AsmGeneratorTest
Change-Id: Ie4e1209c1c60b7a33cb427dbd556a9741ec8f8b3
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
f4978e031c3ad565f02d5a4c65f87ae4477f3613 17-Nov-2015 Deepanshu Gupta <deepanshu@google.com> Revert "LayoutLib: Fix true transparency in status bar."

This reverts commit 4eb298a941c3f465944b63f1a06518e911681c89.

Even though this is techinically closer to what the framework does, the
fix is not complete. As a result, it looks worse when using AppCompat
themes. Revert the change for the release.

Change-Id: I67c1002ea17dee7234d78e2d13aab876467bd70f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
41e2568ca7a5c333c57f3b8cf5d1f6294e65a062 03-Nov-2015 Diego Perez <diegoperez@google.com> Remove auto-boxing during the inflate

Change-Id: I3f9ba5d78363f878fa0c58ca8cbf736bd43fe1c0
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
c14ba383c0b41f6aaeb17cc7074fd272de4efd43 22-Aug-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib: Fix true transparency in status bar.

Change-Id: Ieedf23cde9ab3e36c77501d30cc7e808e66a4782
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
df1b624c8fb3664ebf9db088cb3db6761d3443b4 27-Jul-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib: Fix Status/Navigation Bar color.

If the color value for status bar or navigation bar is declared directly
in the theme (i.e. doesn't reference a color resource via @color/foo),
the ResourceType for the attribute is not assigned by the IDE. LayoutLib
used to ignore resources that were not of type color. This change fixes
the issue by also checking the resources without a type.

Change-Id: I94735ec225415282db06ab9db5c3233ad89c052f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
300f4893351a9974fa3380c513b29d4a7883cd74 23-Jul-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib: translucent sys ui bars

Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
8b4b0ce31acc9f57c7df5b1c70183a6655c1edfb 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/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
442aee6bc1abfb143dcfa1ba60d696e576d066c4 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/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
e0fdd7563ba0a4d053d4a159dd02c66d811a9e32 18-Mar-2015 Deepanshu Gupta <deepanshu@google.com> Use right colors for status bar and nav bar.

Bug: http://b.android.com/81862
Change-Id: Ia10297e83e54c01a50de6cbcac2b7fef48e8d238
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
366fbe9dd48ae02332bc61eb4bd0b8c7c8a32a88 15-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Add time to status bar and fix wifi icon.

Add vector drawable for wifi icon. Also add time to the status bar.

Change-Id: I01da833087a607e9bb6ff085929e3844990179f8
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
862005bd59fdec8697d721e4ab4180143eb80973 13-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Add KitKat wifi and battery icons.

This adds wifi and battery icons for Gingerbread and KitKat. This also
improves the icon resolution code by extracting it out in its own class.
The resources are now organized such that each API level resource
directory is used as a backup for all API levels lower than itself.

Change-Id: I937c83638adcc9fa8cd407e0a3023c3abe95530d
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
82ca7fe915ed30a7e30eb3de3ce816a9ad0867d6 27-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Update system icon resolution in LayoutLib.

This fixes some bugs with the resolution of icons for Status Bar and
Navigation Bar by separating the icons into v21 and v11 directories. An
icon is searched in v21 directory by default. For simulating older
platforms, v11 directory is searched first and then v21 is used as a
fallback.

This also adds xxhdpi versions of home, back and recent icons.

Change-Id: Ia6eafc83856eacafc4fb0b13d87793d4aa24f106
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
b82822e86d24adf10f0faed94bb0baf13130188f 24-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Fix bug to render status bar icons

Change-Id: I653c765105dafb02e30322384ca8e4791ac185d2
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
bf50447839d4cdb1765d308a67aca43bb77cedbc 23-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Add navigtaion bar icons to simulate older platforms.

LayoutLib can simulate older versions of the platform to a very limited
extent. This change adds the old navigtaion bar icons back and moves the
latest ones to directories suffixed with "-v21". The code handles this
resolution in a very crude way.

This also removes a bunch of unused code and fixes some style warnings.

Change-Id: Ib6e7bfd8dfb34b2ccd87f660ca979eb5ef14bae7
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
59713c4c5965220a9ecf3ff7a46e740b24a4db05 10-Nov-2013 Deepanshu Gupta <deepanshu@google.com> Fix text size in Fake Action Bar

Merge f4800bc from frameworks/base

Issue: 11436018
Change-Id: Id74c11037cb43d01f6cd79126623c84edfc37aaf
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
363e1cfa527a887b8d70c4c085f4383b23754948 05-Sep-2013 Deepanshu Gupta <deepanshu@google.com> Fix layout rendering for RTL locales

This changeset adds the framework resources for RTL locales and mirrors
the layout if the application is RTL aware.
Use ICU to check the character orientation of the locale - right to left
or left to right. Set the layout direction on the top level layout
accordingly. Also, load the RTL resources for Nav Bar when the locale is
RTL.

Change-Id: Icbb57ee2ac7c6d8dfc34c2f04dce34d820b9b1ed
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
ab775ecdd189b32e35b0d3f4a821502f88b03a4b 24-Jan-2014 Adam Lesinski <adamlesinski@google.com> Revert "Move frameworks/base/tools/ to frameworks/tools/"

This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java