4482fde98ebad2700ec1f8de5397abb90402b8b8 |
|
23-Nov-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Add support annotations Add support annotations dependency, and add the annotations in where suitable. Test: Manual. "Inspect code" in Android studio no longer shows nullability errors. Existing automated tests pass Bug: 21559567 Change-Id: I47b1072c9b2a9e032318df49db6b86b6af8d206e
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/NavigationBarButton.java
|
9a9b0713395fd4b6bbe6d9959f6ddbed8e086eed |
|
28-Apr-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Move mutate into TintedDrawable Move mutate() into TintedDrawable to prevent it from being called multiple times, which causes the drawable to disappear on KitKat. Bug: 28391968 Change-Id: Ib1a839344c7cb20f7bde3f21b877a0296391bc52
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/NavigationBarButton.java
|
c609ad41cf2769e8706779ae3ee61b994e74474a |
|
01-Feb-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Fix TintedDrawable Mark the drawable as isStateful, so that state updates will be propagated from TextView to the drawable. Bug: 26904125 Change-Id: Ieffb49242f802753e64ba4ef997da48ba34ba05b
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/NavigationBarButton.java
|
e769891ec1653cd6798c116f485968bf1b5bc00a |
|
26-Jan-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Remove dependency on DrawableCompat DrawableCompat requires support lib v22.1.0 which we cannot use yet. Instead implemented a simple version of TintedDrawable for the navigation bar buttons. Change-Id: Iad54303999a425b0c3dddf94f57e0a311f928034
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/NavigationBarButton.java
|
91051468dbc273da8d7e7608640e833a71d011e2 |
|
07-Aug-2015 |
Maurice Lam <yukl@google.com> |
[SuwLib] Tint navigation button icons - Remove the dark variant of button icons, since it is now tinted to the desired color - Use DrawableCompat.setTintList to tint the drawables to the same color used as text - Use textColorPrimary as the navigation text color, since the spec now matches the default textColorPrimary implementation of material theme (This changes the disabled color from 20% alpha to 26% alpha) - Configured the build to take two different implementations of NavigationBarButton. The platform build is the same as Button, since drawable tinting is natively supported. The comapt build uses DrawableCompat in the support library to tint any compound drawables - Removed all xxxhdpi assets since that was introduced in L, but vector assets are used in L instead. - For the vector drawables, use tint instead of fillColor so that the state in the ColorStateList will be taken into account. Bug: 22129308 Change-Id: Id0c7b40ad3e71c2c66a0e89df4522865a61e923e
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/NavigationBarButton.java
|