summaryrefslogtreecommitdiff
path: root/app/java/res
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-05-14 13:20:43 +0200
committerDaniel Weipert <code@drogueronin.de>2023-05-14 13:24:30 +0200
commit6f4dc54bd119203da8dd1f91e65c4e4b99ab2ff0 (patch)
treefa7fe2459283fe81dba17f95eccdf5eded883e11 /app/java/res
parent6aae8398d489de5f33e8824a252793306d570d3c (diff)
menu
Diffstat (limited to 'app/java/res')
-rw-r--r--app/java/res/layout/settings.xml26
-rw-r--r--app/java/res/menu/settings.xml10
-rw-r--r--app/java/res/values/strings.xml8
-rw-r--r--app/java/res/values/styles.xml11
4 files changed, 53 insertions, 2 deletions
diff --git a/app/java/res/layout/settings.xml b/app/java/res/layout/settings.xml
new file mode 100644
index 0000000..5ba8c78
--- /dev/null
+++ b/app/java/res/layout/settings.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ android:paddingBottom="@dimen/activity_vertical_margin"
+ android:orientation="vertical"
+ tools:context=".SettingsActivity"
+>
+
+ <TextureView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/surface_view"
+ />
+
+ <!-- USE_WIFI_LISTENER -->
+ <!-- SELECT_FROM_KNOWN_SSIDS -->
+
+ <!-- USE_AUTOMATIC_DNS/PIHOLE_SERVER_DISCOVERY -->
+ <!-- SET_MANUAL_DNS/PIHOLE_SERVER_IP -->
+</FrameLayout>
diff --git a/app/java/res/menu/settings.xml b/app/java/res/menu/settings.xml
new file mode 100644
index 0000000..2d86504
--- /dev/null
+++ b/app/java/res/menu/settings.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu
+ xmlns:android="http://schemas.android.com/apk/res/android"
+>
+ <item
+ android:id="@+id/menu__settings"
+ android:title="@string/menu__settings"
+ android:orderInCategory="100"
+ />
+</menu>
diff --git a/app/java/res/values/strings.xml b/app/java/res/values/strings.xml
index 2f5e4e6..bd4f88b 100644
--- a/app/java/res/values/strings.xml
+++ b/app/java/res/values/strings.xml
@@ -12,9 +12,13 @@
</string>
<string name="button_start__start">
- Start Proxy
+ Start
</string>
<string name="button_start__stop">
- Stop Proxy
+ Stop
+ </string>
+
+ <string name="menu__settings">
+ Settings
</string>
</resources>
diff --git a/app/java/res/values/styles.xml b/app/java/res/values/styles.xml
new file mode 100644
index 0000000..d5037d5
--- /dev/null
+++ b/app/java/res/values/styles.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="button_start__start" parent="@android:style/Widget.Button">
+ <item name="android:background">#96060C</item>
+ <item name="android:textColor">@android:color/white</item>
+ </style>
+ <style name="button_start__stop" parent="@android:style/Widget.Button">
+ <item name="android:background">#22B225</item>
+ <item name="android:textColor">@android:color/white</item>
+ </style>
+</resources>