OSDN Git Service

LayoutLib: fix the background of title/action bars.
authorXavier Ducrohet <xav@android.com>
Tue, 8 Feb 2011 04:33:44 +0000 (20:33 -0800)
committerXavier Ducrohet <xav@android.com>
Tue, 8 Feb 2011 04:33:44 +0000 (20:33 -0800)
commitabc33e014d4490dc993d1453e2589f538dbd7bbe
tree6461035cd92b2254805dd6e2a153f78f74273595
parent8635908da1a9f0b3e7ba9bd11ce7104b38f76756
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
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/PhoneSystemBar.java
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/TabletSystemBar.java
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java