OSDN Git Service

Distinguish transient + transparent bar styles.
authorJohn Spurlock <jspurlock@google.com>
Mon, 12 Aug 2013 14:16:29 +0000 (10:16 -0400)
committerJohn Spurlock <jspurlock@google.com>
Tue, 13 Aug 2013 17:29:43 +0000 (13:29 -0400)
commite932e30eadb5978591316ffe3d21d60604c0cd91
tree3421d33c5784c325b1bdbfc667957ebde4f0374f
parent34e13d90eda9bfda7a70998d190a95c88aa3d3d1
Distinguish transient + transparent bar styles.

Transient bars = 30% black scrim per spec (formerly view alpha).
Transparent nav bar = Simple gradient drawable from 50% to 0% black.
Transparent status bar = Fully transparent.

Smoother transitions between bar modes will be tricky due to
coordination with window manager, and thus deferred to a separate
future change.

Pre-baked assets instead of the gradient drawable will also be
part of a separate future change, this change is simply meant to
move closer to the final look and feel to minimize confusion for
those kicking the tires on the new flags.

Bug:10012887
Change-Id: I8c35a660187903224a6bfe604b5313e9115c4a73
packages/SystemUI/res/values/colors.xml
packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java