aboutsummaryrefslogtreecommitdiff
path: root/android/app/src/main/res
diff options
context:
space:
mode:
authorNeroBurner <pyro4hell@gmail.com>2021-06-21 21:51:42 +0200
committerrubenwardy <rw@rubenwardy.com>2021-10-18 18:11:33 +0100
commit27f4195471fbbac33b5cdc19025ec5aa6c118a75 (patch)
tree193758bcafe425e7dcb9d77796ec3674eea182b6 /android/app/src/main/res
parentb2596eda32a41a8008b6979d7a29e0c225421a3a (diff)
downloadminetest-27f4195471fbbac33b5cdc19025ec5aa6c118a75.tar.gz
minetest-27f4195471fbbac33b5cdc19025ec5aa6c118a75.tar.bz2
minetest-27f4195471fbbac33b5cdc19025ec5aa6c118a75.zip
Move build/android directory to root of project (#11283)
Diffstat (limited to 'android/app/src/main/res')
-rw-r--r--android/app/src/main/res/drawable/background.pngbin0 -> 83 bytes
-rw-r--r--android/app/src/main/res/drawable/bg.xml4
-rw-r--r--android/app/src/main/res/layout/activity_main.xml30
-rw-r--r--android/app/src/main/res/mipmap/ic_launcher.pngbin0 -> 5780 bytes
-rw-r--r--android/app/src/main/res/values/strings.xml10
-rw-r--r--android/app/src/main/res/values/styles.xml15
6 files changed, 59 insertions, 0 deletions
diff --git a/android/app/src/main/res/drawable/background.png b/android/app/src/main/res/drawable/background.png
new file mode 100644
index 000000000..43bd6089e
--- /dev/null
+++ b/android/app/src/main/res/drawable/background.png
Binary files differ
diff --git a/android/app/src/main/res/drawable/bg.xml b/android/app/src/main/res/drawable/bg.xml
new file mode 100644
index 000000000..903335ed9
--- /dev/null
+++ b/android/app/src/main/res/drawable/bg.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
+ android:src="@drawable/background"
+ android:tileMode="repeat" />
diff --git a/android/app/src/main/res/layout/activity_main.xml b/android/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 000000000..e6f461f14
--- /dev/null
+++ b/android/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,30 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/activity_main"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/bg">
+
+ <ProgressBar
+ android:id="@+id/progressBar"
+ style="@style/CustomProgressBar"
+ android:layout_width="match_parent"
+ android:layout_height="30dp"
+ android:layout_centerInParent="true"
+ android:layout_marginLeft="90dp"
+ android:layout_marginRight="90dp"
+ android:indeterminate="false"
+ android:max="100"
+ android:visibility="gone" />
+
+ <TextView
+ android:id="@+id/textView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/progressBar"
+ android:layout_centerInParent="true"
+ android:background="@android:color/transparent"
+ android:text="@string/loading"
+ android:textColor="#FEFEFE"
+ android:visibility="gone" />
+
+</RelativeLayout>
diff --git a/android/app/src/main/res/mipmap/ic_launcher.png b/android/app/src/main/res/mipmap/ic_launcher.png
new file mode 100644
index 000000000..88a83782c
--- /dev/null
+++ b/android/app/src/main/res/mipmap/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
new file mode 100644
index 000000000..a6fba70d5
--- /dev/null
+++ b/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="label">Minetest</string>
+ <string name="loading">Loading&#8230;</string>
+ <string name="not_granted">Required permission wasn\'t granted, Minetest can\'t run without it</string>
+ <string name="notification_title">Loading Minetest</string>
+ <string name="notification_description">Less than 1 minute&#8230;</string>
+
+</resources>
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 000000000..291a4eaf1
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:tools="http://schemas.android.com/tools">
+
+ <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
+ <item name="windowActionBar">false</item>
+ <item name="android:windowFullscreen">true</item>
+ <item name="android:windowBackground">@drawable/bg</item>
+ <item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="p">shortEdges</item>
+ </style>
+
+ <style name="CustomProgressBar" parent="Widget.AppCompat.ProgressBar.Horizontal">
+ <item name="android:indeterminateOnly">false</item>
+ </style>
+
+</resources>