summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-02-02 11:56:12 -0800
committerLuis Vidal <lvidal@cyngn.com>2016-02-04 15:00:22 -0800
commit4028c36068d4d9dac12b989e937e5ad3486a1bd3 (patch)
tree5704942c1d145bc1feafbf74363c9c962d3246a1 /res/layout
parent73b46248a11d3d5f5aa0e706bef89b65f87b715e (diff)
downloadpackages_apps_ThemeChooser-4028c36068d4d9dac12b989e937e5ad3486a1bd3.zip
packages_apps_ThemeChooser-4028c36068d4d9dac12b989e937e5ad3486a1bd3.tar.gz
packages_apps_ThemeChooser-4028c36068d4d9dac12b989e937e5ad3486a1bd3.tar.bz2
Rebadge 'Live' in theme chooser to 'Animated'
Replaces the static red ribon with a text view so the label can be translated. Default text is set to 'ANIM' Change-Id: Ic701d28bfd20568419a4ea2063ee208210037389 TICKET: CYNGNOS-1688
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/wallpaper_component_selection_item.xml27
1 files changed, 20 insertions, 7 deletions
diff --git a/res/layout/wallpaper_component_selection_item.xml b/res/layout/wallpaper_component_selection_item.xml
index 365221e..e36ec0a 100644
--- a/res/layout/wallpaper_component_selection_item.xml
+++ b/res/layout/wallpaper_component_selection_item.xml
@@ -23,13 +23,26 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/wallpaper_border" />
- <ImageView
- android:id="@+id/live_lock_screen_ribbon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="top|right"
- android:src="@drawable/ribbon_live_lock_screen"
- android:visibility="gone" />
+ <LinearLayout
+ android:id="@+id/live_lock_screen_badge"
+ android:orientation="vertical"
+ android:layout_width="@dimen/animated_lock_screen_badge_width"
+ android:layout_height="@dimen/animated_lock_screen_badge_height"
+ android:background="@android:color/white"
+ android:layout_gravity="center_horizontal|bottom"
+ android:visibility="gone">
+ <com.cyngn.theme.widget.FittedTextView
+ android:layout_width="@dimen/animated_lock_screen_text_width"
+ android:layout_height="@dimen/animated_lock_screen_text_height"
+ android:includeFontPadding="false"
+ android:gravity="center"
+ android:layout_marginLeft="@dimen/animated_lock_screen_text_margin_left"
+ android:layout_marginRight="@dimen/animated_lock_screen_text_margin_right"
+ android:layout_marginTop="@dimen/animated_lock_screen_text_margin_top"
+ android:layout_marginBottom="@dimen/animated_lock_screen_text_margin_bottom"
+ style="@style/animated_lock_screen_badge_text_style"
+ android:text="@string/animated_lock_screen_badge_text"/>
+ </LinearLayout>
</FrameLayout>
<com.cyngn.theme.widget.LatoTextView