aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Horimoto <khorimoto@gmail.com>2015-09-15 10:16:33 -0700
committerKyle Horimoto <khorimoto@gmail.com>2015-09-15 10:16:33 -0700
commit170638c7e3295c6fe7b0d5c644db8368845b2ad5 (patch)
treee8bb725d52af3a55890505a0bb778c832096e90b
parentb3e2dc01b9dc4045151a9040b3276ce5f6845a6b (diff)
downloadconnectbot-170638c7e3295c6fe7b0d5c644db8368845b2ad5.tar.gz
connectbot-170638c7e3295c6fe7b0d5c644db8368845b2ad5.tar.bz2
connectbot-170638c7e3295c6fe7b0d5c644db8368845b2ad5.zip
Adjusted style to support pre-v11 devices.
-rw-r--r--app/src/main/res/layout/item_host.xml2
-rw-r--r--app/src/main/res/values-v11/styles.xml4
-rw-r--r--app/src/main/res/values/styles.xml3
3 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/res/layout/item_host.xml b/app/src/main/res/layout/item_host.xml
index e8f81bc..d39da8d 100644
--- a/app/src/main/res/layout/item_host.xml
+++ b/app/src/main/res/layout/item_host.xml
@@ -23,7 +23,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="72dp"
- android:background="?android:attr/selectableItemBackground"
+ style="@style/SelectableItem"
>
<ImageView
diff --git a/app/src/main/res/values-v11/styles.xml b/app/src/main/res/values-v11/styles.xml
index 3d67346..79f9633 100644
--- a/app/src/main/res/values-v11/styles.xml
+++ b/app/src/main/res/values-v11/styles.xml
@@ -33,4 +33,8 @@
<item name="android:textColor">?android:textColorSecondary</item>
<item name="android:textSize">14sp</item>
</style>
+
+ <style name="SelectableItem">
+ <item name="android:background">?android:attr/selectableItemBackground</item>
+ </style>
</resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 39dc628..0e6a546 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -69,4 +69,7 @@
<style name="ListItemSecondLineText.Blue" parent="ListItemSecondLineText">
<item name="android:textColor">@color/blue</item>
</style>
+
+ <!-- This value is overridden for v11 and higher, but left empty here. -->
+ <style name="SelectableItem"></style>
</resources>