summaryrefslogtreecommitdiffstats
path: root/res/layout/tag_default.xml
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/layout/tag_default.xml
parentcc64be3a192244a89c3d6d7594618910b40d8a91 (diff)
downloadpackages_apps_ThemeChooser-5e9cc5fa726d7e551fce94bf60afab869036fc62.tar.gz
packages_apps_ThemeChooser-5e9cc5fa726d7e551fce94bf60afab869036fc62.tar.bz2
packages_apps_ThemeChooser-5e9cc5fa726d7e551fce94bf60afab869036fc62.zip
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/layout/tag_default.xml')
-rw-r--r--res/layout/tag_default.xml10
1 files changed, 3 insertions, 7 deletions
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"/>