summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-07 18:48:46 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-07 18:48:46 -0500
commit0d6a88874a2984843d05d76364e9bcc73b28e24c (patch)
tree28e7a70bea2dfcaeefa55b4ff197f75e75b0d06d /app/src/main/res
parent141e1f431e435fe84dde561114978e4cfe3b1448 (diff)
PlaceholderFragment: Simple fragment that shows a message
This is used for the detail pane when no profile is selected.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/placeholder_fragment.xml7
-rw-r--r--app/src/main/res/values/strings.xml1
2 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/res/layout/placeholder_fragment.xml b/app/src/main/res/layout/placeholder_fragment.xml
new file mode 100644
index 00000000..8a321c6b
--- /dev/null
+++ b/app/src/main/res/layout/placeholder_fragment.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/text"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:text="@string/placeholder_text" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7b581b9a..cbedef43 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -3,5 +3,6 @@
<string name="app_name">WireGuard</string>
<string name="connected">Connected</string>
<string name="disconnected">Disconnected</string>
+ <string name="placeholder_text">No profile selected.</string>
<string name="settings">Settings</string>
</resources>