diff options
| author | Andrew Flynn <flynn@google.com> | 2015-06-10 14:12:23 -0400 |
|---|---|---|
| committer | Andrew Flynn <flynn@google.com> | 2015-06-12 09:56:56 -0400 |
| commit | 0f27a3f0d7048140fac2329c714af2bfcf4218d6 (patch) | |
| tree | 6e026b830d46b0fddbc63e9fc0f3279c982623fd /packages/SystemUI/res | |
| parent | a31940df170ea7e8253736ce7b5dba2176699c25 (diff) | |
| download | frameworks_base-0f27a3f0d7048140fac2329c714af2bfcf4218d6.zip frameworks_base-0f27a3f0d7048140fac2329c714af2bfcf4218d6.tar.gz frameworks_base-0f27a3f0d7048140fac2329c714af2bfcf4218d6.tar.bz2 | |
SysUI: Status bar ImageViews
- Switch AlphaOptimizedImageView to have the boolean hasOverLappingRendering()
return be a custom value. This allows us to have AnimatedImageView extend
AlphaOptimizedImageView and support both types of ImageViews w/o having to
create 2x subclasses.
- Add drawable ID tracking to AnimatedImageView so that we don't interrupt
animations with an update of the exact same drawable.
- Switch mobile signal icon to use AnimatedImageView so that animations aren't
interrupted.
Bug: 21504588
Change-Id: Ic2275f1bf607449c191ae0d08bc7756c7d694bc1
Diffstat (limited to 'packages/SystemUI/res')
4 files changed, 17 insertions, 2 deletions
diff --git a/packages/SystemUI/res/layout/mobile_signal_group.xml b/packages/SystemUI/res/layout/mobile_signal_group.xml index 6a4ac2c..6ae5cf3 100644 --- a/packages/SystemUI/res/layout/mobile_signal_group.xml +++ b/packages/SystemUI/res/layout/mobile_signal_group.xml @@ -19,22 +19,25 @@ --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:systemui="http://schemas.android.com/apk/res-auto" android:id="@+id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" > - <com.android.systemui.statusbar.AlphaOptimizedImageView + <com.android.systemui.statusbar.AnimatedImageView android:theme="@style/DualToneLightTheme" android:id="@+id/mobile_signal" android:layout_height="wrap_content" android:layout_width="wrap_content" + systemui:hasOverlappingRendering="false" /> - <com.android.systemui.statusbar.AlphaOptimizedImageView + <com.android.systemui.statusbar.AnimatedImageView android:theme="@style/DualToneDarkTheme" android:id="@+id/mobile_signal_dark" android:layout_height="wrap_content" android:layout_width="wrap_content" android:alpha="0.0" + systemui:hasOverlappingRendering="false" /> <ImageView android:id="@+id/mobile_type" diff --git a/packages/SystemUI/res/layout/signal_cluster_view.xml b/packages/SystemUI/res/layout/signal_cluster_view.xml index a2121ee..f8bd6fd 100644 --- a/packages/SystemUI/res/layout/signal_cluster_view.xml +++ b/packages/SystemUI/res/layout/signal_cluster_view.xml @@ -20,6 +20,7 @@ <!-- extends LinearLayout --> <com.android.systemui.statusbar.SignalClusterView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:systemui="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" android:layout_width="wrap_content" android:gravity="center_vertical" @@ -43,6 +44,7 @@ android:id="@+id/ethernet" android:layout_height="wrap_content" android:layout_width="wrap_content" + systemui:hasOverlappingRendering="false" /> <com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" @@ -50,6 +52,7 @@ android:layout_height="wrap_content" android:layout_width="wrap_content" android:alpha="0.0" + systemui:hasOverlappingRendering="false" /> </FrameLayout> <FrameLayout @@ -62,6 +65,7 @@ android:id="@+id/wifi_signal" android:layout_height="wrap_content" android:layout_width="wrap_content" + systemui:hasOverlappingRendering="false" /> <com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" @@ -69,6 +73,7 @@ android:layout_height="wrap_content" android:layout_width="wrap_content" android:alpha="0.0" + systemui:hasOverlappingRendering="false" /> </FrameLayout> <View @@ -94,6 +99,7 @@ android:layout_height="wrap_content" android:layout_width="wrap_content" android:src="@drawable/stat_sys_no_sims" + systemui:hasOverlappingRendering="false" /> <com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" @@ -102,6 +108,7 @@ android:layout_width="wrap_content" android:src="@drawable/stat_sys_no_sims" android:alpha="0.0" + systemui:hasOverlappingRendering="false" /> </FrameLayout> <View diff --git a/packages/SystemUI/res/layout/status_bar_expanded_header.xml b/packages/SystemUI/res/layout/status_bar_expanded_header.xml index 0e1517f..7262ed2 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded_header.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded_header.xml @@ -162,6 +162,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" + systemui:hasOverlappingRendering="false" /> <TextView diff --git a/packages/SystemUI/res/values/attrs.xml b/packages/SystemUI/res/values/attrs.xml index 354b70b..527248c 100644 --- a/packages/SystemUI/res/values/attrs.xml +++ b/packages/SystemUI/res/values/attrs.xml @@ -86,5 +86,9 @@ <declare-styleable name="StatusBarWindowView_Layout"> <attr name="ignoreRightInset" format="boolean" /> </declare-styleable> + + <declare-styleable name="AlphaOptimizedImageView"> + <attr name="hasOverlappingRendering" format="boolean" /> + </declare-styleable> </resources> |
