diff options
author | NeroBurner <pyro4hell@gmail.com> | 2021-06-21 21:51:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 20:51:42 +0100 |
commit | a7143c2a8c48b234d78ec666193b942ae0b62ca3 (patch) | |
tree | c6ba5317ba853536d25709f80aadc4036c14dfd3 /android/app/src/main/res | |
parent | 7fdbf3f231976257a1c246c6ebcdbc5bb8fa5571 (diff) | |
download | minetest-a7143c2a8c48b234d78ec666193b942ae0b62ca3.tar.gz minetest-a7143c2a8c48b234d78ec666193b942ae0b62ca3.tar.bz2 minetest-a7143c2a8c48b234d78ec666193b942ae0b62ca3.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.png | bin | 0 -> 83 bytes | |||
-rw-r--r-- | android/app/src/main/res/drawable/bg.xml | 4 | ||||
-rw-r--r-- | android/app/src/main/res/layout/activity_main.xml | 30 | ||||
-rw-r--r-- | android/app/src/main/res/mipmap/ic_launcher.png | bin | 0 -> 5780 bytes | |||
-rw-r--r-- | android/app/src/main/res/values/strings.xml | 11 | ||||
-rw-r--r-- | android/app/src/main/res/values/styles.xml | 15 |
6 files changed, 60 insertions, 0 deletions
diff --git a/android/app/src/main/res/drawable/background.png b/android/app/src/main/res/drawable/background.png Binary files differnew file mode 100644 index 000000000..43bd6089e --- /dev/null +++ b/android/app/src/main/res/drawable/background.png 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 Binary files differnew file mode 100644 index 000000000..88a83782c --- /dev/null +++ b/android/app/src/main/res/mipmap/ic_launcher.png 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..85238117f --- /dev/null +++ b/android/app/src/main/res/values/strings.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="label">Minetest</string> + <string name="loading">Loading…</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…</string> + <string name="ime_dialog_done">Done</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> |