summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/base.xml9
-rw-r--r--res/layout/gamepad.xml40
-rw-r--r--res/layout/webview.xml14
3 files changed, 63 insertions, 0 deletions
diff --git a/res/layout/base.xml b/res/layout/base.xml
new file mode 100644
index 0000000..497dd2e
--- /dev/null
+++ b/res/layout/base.xml
@@ -0,0 +1,9 @@
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
+ <include layout="@layout/gamepad"/>
+</FrameLayout>
diff --git a/res/layout/gamepad.xml b/res/layout/gamepad.xml
new file mode 100644
index 0000000..bfdaacd
--- /dev/null
+++ b/res/layout/gamepad.xml
@@ -0,0 +1,40 @@
+<merge
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ >
+ <pw.cloudef.rpg.Button
+ app:inputBackground="@drawable/action_usual"
+ app:buttonCenterDistance="0"
+ app:deadZone="0"
+ android:id="@+id/hider"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="top|right"
+ android:alpha=".5"
+ />
+ <com.andretietz.android.controller.ActionView
+ android:id="@+id/viewDirection"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:buttonCenterDistance="0.45"
+ app:inputBackground="@drawable/direction_background"
+ app:button1_enabled="@drawable/direction_right_usual"
+ app:button1_pressed="@drawable/direction_right_pressed"
+ app:button2_enabled="@drawable/direction_down_usual"
+ app:button2_pressed="@drawable/direction_down_pressed"
+ app:button3_enabled="@drawable/direction_left_usual"
+ app:button3_pressed="@drawable/direction_left_pressed"
+ app:button4_enabled="@drawable/direction_up_usual"
+ app:button4_pressed="@drawable/direction_up_pressed"
+ android:layout_gravity="bottom|left"
+ android:alpha=".5"
+ />
+ <com.andretietz.android.controller.ActionView
+ android:id="@+id/viewAction"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom|right"
+ android:alpha=".5"
+ />
+</merge>
diff --git a/res/layout/webview.xml b/res/layout/webview.xml
new file mode 100644
index 0000000..f992f2c
--- /dev/null
+++ b/res/layout/webview.xml
@@ -0,0 +1,14 @@
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
+ <WebView
+ android:id="@+id/web"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ />
+ <include layout="@layout/gamepad"/>
+</FrameLayout>