From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001
From: Jari Vetoniemi <jari.vetoniemi@indooratlas.com>
Date: Mon, 16 Mar 2020 18:49:26 +0900
Subject: Fresh start

---
 res/layout/base.xml    |  9 +++++++++
 res/layout/gamepad.xml | 40 ++++++++++++++++++++++++++++++++++++++++
 res/layout/webview.xml | 14 ++++++++++++++
 3 files changed, 63 insertions(+)
 create mode 100644 res/layout/base.xml
 create mode 100644 res/layout/gamepad.xml
 create mode 100644 res/layout/webview.xml

(limited to 'res/layout')

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>
-- 
cgit v1.2.3-70-g09d2