History log of /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4ea74d2960688db6aa13452765dd5f2d07a40189 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
91fa3ba4cc8acd4caeeb88f90ce39198b5fea414 03-Nov-2015 Diego Perez <diegoperez@google.com> Remove auto-boxing during the inflate

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

Change-Id: Ieedf23cde9ab3e36c77501d30cc7e808e66a4782
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
e3f9834ebd8a6e4ee155c8e4c9456dfc98e8b832 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
fc8f4aad7395eca11f6d9b82eb266b1f4ee5041b 23-Jul-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib: translucent sys ui bars

Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.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/CustomBar.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/CustomBar.java
58ca246c834d7ab45939367367a5932d8e348f41 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
553a4e91385111f20ddf426f81b3193b9e951762 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
84cc05cacd2786261b01d3be2364944c90765801 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
1076be31f1c14f39295cc2ce7a747ee9ad96ee73 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
16af3691f5c99089457a6dd16a90e828c3482f0f 24-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Fix bug to render status bar icons

Change-Id: I653c765105dafb02e30322384ca8e4791ac185d2
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
42c7ce02f4023c94b315253754a20c20800be731 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
d8df6b570f10cec486b2af708e9a393f3012317d 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
8930cb4f37ff0fbde65f7afd4bbe06ab77677f78 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
282e181b58cf72b6ca770dc7ca5f91f135444502 24-Jan-2014 Adam Lesinski <adamlesinski@google.com> Revert "Move frameworks/base/tools/ to frameworks/tools/"

This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
9f6a119c8aa276432ece4fe2118bd8a3c9b1067e 28-Aug-2013 Mike Lockwood <lockwood@google.com> Move frameworks/base/tools/ to frameworks/tools/

Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
891b703f7b1e0e396d16477cc66a286da7161b49 17-Oct-2012 Xavier Ducrohet <xav@android.com> Update layoutlib for jb mr1.

Status bar displayed on all devices.
Update logic for displaying nav bar to whether or not
device has soft button.

Update navigation buttons to new look.
Remove battery and signal from navigation bar.

Change-Id: I8241d71269a17126218a3062ba727e379a8e6c25
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
01b6c755dbcf24e71192dc44757e2eea2a426091 10-Jul-2012 Xavier Ducrohet <xav@android.com> Replace LruCache implementation for layoutlib.

The android version depends on a custom version of LinkedHashMap
which is not present on desktop VMs. This new implementation is done
in a way that minimizes the difference between the two.

Also some minor fixes.

Change-Id: Ib27b0419f9d0e6ba4d4abb26b2ccd968af59eba8
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
c8a0b8e6bccc604d3670d72cab0691ab6b8302c1 07-Feb-2012 Xavier Ducrohet <xav@android.com> Fix a setBackgroundDrawable in layoutlib.

Change-Id: Id5f3ec8cc6863fa5929743ef4014c331633efce9
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
7396348dfcfb45b7ad055f4c18cabbe5e8270d26 06-Feb-2012 Xavier Ducrohet <xav@android.com> Setup ActionBars in layoutlib the same way the platform does it.

Instead of using a simple ImageView for the icon, this uses the platform
layout/action_bar_home which uses a custom class to position and resize
the icon (and also supports the Up icon that we don't yet support).

This ensures that the icon is properly positionned and sized like
on devices.

Change-Id: I57432afa82d257bb043247001320b368045d7f55
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
d2f664d42cc29507b01a98622298b69131463825 30-Jul-2011 Xavier Ducrohet <xav@android.com> Misc layoutlib fix in preparation of the access change in framework code.

Change-Id: I873adb7345514be6daa5c4fea4ebabb515f203e2
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
04ce81113107d2bfa0b8248b13145b4cf24cb943 10-Jun-2011 Xavier Ducrohet <xav@android.com> Bring in more layout lib changes from hc-mr1.

fe051bb2 : Change the way the layoutlib instantiate its XmlPullParser.

A lot of the init code was duplicated so I made a ParserFactory class.

Also created an extension of the KXmlPullParser to override toString().
This allows easier debugging when dealing with multiple parsers (which
is always the case).

Also added some (disabled) debugging printf to deal with parser stack
as it can be tricky figuring out which parsers are in the stack at
which point.

8969147c : Fix case where the int[] attrs doesn't directly match a styleable.

In the case of the FastScroller the int[] is a custom mix of attr
instead of a int[] that exists as R.styleable.foo.

This makes our reflection based mechanism used to find the styleable
fail, so instead we search for each attribute separately (like
we probably should have done from the beginning).

0c264b35: Fix various cases of getDimension to report error if unit is missing.

if getDimention###() is called for a string that has no unit,
then an error is output through LayoutLog, but the rendering keeps
going by using dp as a default.

0beb7eea: Make (Bridge)TypedArray.getInteger() call out to getInt()

Only getInt() resolved attribute flags/enum and I'm not sure why
there's two to begin with.
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
fb93ce9684120a36862b5b5e67b1865a652907e9 04-Jun-2011 Xavier Ducrohet <xav@android.com> Import the Layoutlib from hc-mr1.

This is squash commit of all the missing patches.

Change-Id: Ie081c46a173290646deddbde503a720d50c4400f
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
02d2b5a4031c80bfe1012ce2f4f7b3695762abd9 14-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: When possible ensure parsers are popped from the stack.

Some parser consumers (seems to be mostly resource inflation)
don't use the pull parser up to the END_DOCUMENT tag, making
the parser not pop itself from the parser stack automatically.

This is likely due to the XML resources being very shallow (1-2 levels
max), and the inflater just reading the content that it expects instead
of parsing till the document is done.

This ensures that *some* parsers are pop'ed from the stack when
used. Some other parsers we don't really control and hope the
user will parse till END_DOCUMENT.

Change-Id: Ie1f5762983fed2b2ae97b896218ae12b493e7ad9
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
abc33e014d4490dc993d1453e2589f538dbd7bbe 08-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: fix the background of title/action bars.

The bars are supposed to sit on top of the window so
that if they are transparent (which is the default case
for the action bar), the window background shows through.

Fix this using a layout to represent the window content
(all but the system bar) in which the title/action bars
and the layout content sits. This layout receives the
windowBackground drawable.

Change-Id: I8072c5ff52f585fa32acb589d8526e1c13cbcd94
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
13bdc3355c781dc2614f2810a42d3a9e73f5bed9 06-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: improved rendering for system/title/action bars.

Change-Id: I926531e9ad4a7b98e04e23cac3837794f7c89449
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
bbbb8326020368958a3f1d248878329e9d6b10c0 28-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: render system/title/action bars.

Also a few generic fixes in the layoutlib itself to support
this.

Change-Id: Ie3f24c9056bd3cc72f39f8a4f2c0861be15bff55
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java