aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-16 04:29:04 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-16 04:29:04 -0500
commit60b109b8c94a46a281f3beadadc20414d0be2307 (patch)
treea82a28df3e5f5403b4011f51ba0a5af86ed79537 /app/src/main/res
parentBindingAdapters: Create an adapter for textStyle (diff)
downloadwireguard-android-60b109b8c94a46a281f3beadadc20414d0be2307.tar.xz
wireguard-android-60b109b8c94a46a281f3beadadc20414d0be2307.zip
ConfigList: Denote the primary config with bold text
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/config_list_item.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/res/layout/config_list_item.xml b/app/src/main/res/layout/config_list_item.xml
index 23935fdc..30553bc7 100644
--- a/app/src/main/res/layout/config_list_item.xml
+++ b/app/src/main/res/layout/config_list_item.xml
@@ -3,6 +3,8 @@
<data>
+ <import type="android.graphics.Typeface" />
+
<import type="com.wireguard.android.VpnService" />
<variable
@@ -23,7 +25,8 @@
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/config_switch"
- android:text="@{item.name}" />
+ android:text="@{item.name}"
+ android:textStyle="@{item.primary ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT}" />
<TextView
android:id="@+id/config_switch"