OSDN Git Service

Added visual affordance/handle for navigation bar
authorMatthew Ng <ngmatthew@google.com>
Sat, 16 Feb 2019 00:20:31 +0000 (16:20 -0800)
committerMatthew Ng <ngmatthew@google.com>
Wed, 20 Feb 2019 00:42:08 +0000 (16:42 -0800)
commitb55c02c9dafacb2e494cb7b438bf05776c83033e
tree10d722ce1b306ae139931b408ff00bd9acc20db7
parent42596b17627cd498163a588612e114c903299110
Added visual affordance/handle for navigation bar

Added the handle that would sit at the bottom where the navigation bar
would be and off by default. Use prototype to make it visible. The bar
will also use color adaptation. Needed to fix null states when the
inflator would swap the normal home/back button layout with the handle.
Added the new 16dp overlay as the visual inset.

Test: manual
Bug: 112934365
Change-Id: I88f3443ad36ceefa8f490d17b4daefbeaab5c60a
16 files changed:
packages/SystemUI/res/layout/home_handle.xml [new file with mode: 0644]
packages/SystemUI/res/values/config.xml
packages/SystemUI/res/values/dimens.xml
packages/SystemUI/src/com/android/systemui/statusbar/phone/ContextualButtonGroup.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarTransitionsController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavBarTintController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationHandle.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationPrototypeController.java
packages/overlays/Android.mk
packages/overlays/ExperimentNavigationBarVisualInsetOverlay/Android.mk [new file with mode: 0644]
packages/overlays/ExperimentNavigationBarVisualInsetOverlay/AndroidManifest.xml [new file with mode: 0644]
packages/overlays/ExperimentNavigationBarVisualInsetOverlay/res/values/config.xml [new file with mode: 0644]
packages/overlays/ExperimentNavigationBarVisualInsetOverlay/res/values/strings.xml [new file with mode: 0644]