summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/profile_list_item.xml10
-rw-r--r--app/src/main/res/values/strings.xml2
2 files changed, 12 insertions, 0 deletions
diff --git a/app/src/main/res/layout/profile_list_item.xml b/app/src/main/res/layout/profile_list_item.xml
index aeafaf0f..97b7273f 100644
--- a/app/src/main/res/layout/profile_list_item.xml
+++ b/app/src/main/res/layout/profile_list_item.xml
@@ -21,6 +21,16 @@
android:text="@{item.name}" />
<TextView
+ style="?android:attr/textAppearanceMedium"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_toEndOf="@+id/profile_name"
+ android:text="@{item.isConnected ? @string/connected : @string/disconnected}"
+ android:textAlignment="textEnd"
+ android:textColor="@{item.isConnected ? @android:color/holo_green_dark : @android:color/holo_red_dark}" />
+
+ <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/profile_name"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a5614249..8debebf8 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">WireGuard</string>
+ <string name="connected">Connected</string>
+ <string name="disconnected">Disconnected</string>
</resources>