summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-04-01 15:04:19 -0700
committerClark Scheff <clark@cyngn.com>2015-04-03 15:19:28 +0000
commit5e9cc5fa726d7e551fce94bf60afab869036fc62 (patch)
tree104573ea8fa13cda4b383f15180ab0c7bb2d5797 /res
parentcc64be3a192244a89c3d6d7594618910b40d8a91 (diff)
downloadpackages_apps_ThemeChooser-5e9cc5fa726d7e551fce94bf60afab869036fc62.zip
packages_apps_ThemeChooser-5e9cc5fa726d7e551fce94bf60afab869036fc62.tar.gz
packages_apps_ThemeChooser-5e9cc5fa726d7e551fce94bf60afab869036fc62.tar.bz2
Adjust tag layouts to better accomodate multiple tags
If a theme has multiple tags enabled, they may end up being cut off as they extend beyond the bounds of their container. This patch reduces the text size to 12sp, wraps content instead of fixed size and adds padding on sides. Change-Id: If05d4d6c4efc666e1481773fbd1b1108a9a505b7 REF: CHOOSER-3
Diffstat (limited to 'res')
-rw-r--r--res/layout/tag_customized.xml10
-rw-r--r--res/layout/tag_default.xml10
-rw-r--r--res/layout/tag_updated.xml10
-rw-r--r--res/values/styles.xml10
4 files changed, 19 insertions, 21 deletions
diff --git a/res/layout/tag_customized.xml b/res/layout/tag_customized.xml
index 426da25..458f8ce 100644
--- a/res/layout/tag_customized.xml
+++ b/res/layout/tag_customized.xml
@@ -5,12 +5,8 @@
<com.cyngn.theme.widget.LatoTextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tag_customized"
- android:layout_width="100dp"
+ android:layout_width="wrap_content"
android:layout_height="24dp"
- android:layout_marginEnd="8dp"
- android:gravity="center"
- android:textSize="14sp"
- android:textColor="@color/tag_text_color"
- android:textAllCaps="true"
android:background="@drawable/bg_tag_customized"
- android:text="@string/customized_tag_text" />
+ android:text="@string/customized_tag_text"
+ style="@style/tag_style"/>
diff --git a/res/layout/tag_default.xml b/res/layout/tag_default.xml
index fe49d7f..f1de250 100644
--- a/res/layout/tag_default.xml
+++ b/res/layout/tag_default.xml
@@ -5,12 +5,8 @@
<com.cyngn.theme.widget.LatoTextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tag_default"
- android:layout_width="75dp"
+ android:layout_width="wrap_content"
android:layout_height="24dp"
- android:layout_marginEnd="8dp"
- android:gravity="center"
- android:textSize="14sp"
- android:textColor="@color/tag_text_color"
- android:textAllCaps="true"
android:background="@drawable/bg_tag_default"
- android:text="@string/default_tag_text" />
+ android:text="@string/default_tag_text"
+ style="@style/tag_style"/>
diff --git a/res/layout/tag_updated.xml b/res/layout/tag_updated.xml
index ab05187..6b179fe 100644
--- a/res/layout/tag_updated.xml
+++ b/res/layout/tag_updated.xml
@@ -5,12 +5,8 @@
<com.cyngn.theme.widget.LatoTextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tag_updated"
- android:layout_width="75dp"
+ android:layout_width="wrap_content"
android:layout_height="24dp"
- android:layout_marginEnd="8dp"
- android:gravity="center"
- android:textSize="14sp"
- android:textColor="@color/tag_text_color"
- android:textAllCaps="true"
android:background="@drawable/bg_tag_updated"
- android:text="@string/updated_tag_text" />
+ android:text="@string/updated_tag_text"
+ style="@style/tag_style"/>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 1853066..71dd055 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -115,4 +115,14 @@
<item name="android:textColor">@color/customize_layout_text_color</item>
<item name="android:textAllCaps">true</item>
</style>
+
+ <style name="tag_style">
+ <item name="android:layout_marginEnd">8dp</item>
+ <item name="android:paddingStart">4dp</item>
+ <item name="android:paddingEnd">4dp</item>
+ <item name="android:gravity">center</item>
+ <item name="android:textSize">12sp</item>
+ <item name="android:textColor">@color/tag_text_color</item>
+ <item name="android:textAllCaps">true</item>
+ </style>
</resources>