android/app/src/main/AndroidManifest.xml | 9 android/app/src/main/assets/html/index.html | 18 + android/app/src/main/assets/js/hello.js | 12 android/app/src/main/java/org/libreoffice/androidapp/JavaScriptInterface.java | 22 + android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java | 48 ++ android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml | 34 ++ android/app/src/main/res/drawable/ic_launcher_background.xml | 170 ++++++++++ android/app/src/main/res/layout/activity_main.xml | 32 + android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 5 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml | 5 android/app/src/main/res/mipmap-hdpi/ic_launcher.png |binary android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png |binary android/app/src/main/res/mipmap-mdpi/ic_launcher.png |binary android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png |binary android/app/src/main/res/mipmap-xhdpi/ic_launcher.png |binary android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png |binary android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png |binary android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png |binary android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png |binary android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png |binary android/app/src/main/res/values/colors.xml | 6 android/app/src/main/res/values/strings.xml | 3 android/app/src/main/res/values/styles.xml | 11 23 files changed, 370 insertions(+), 5 deletions(-)
New commits: commit 8249dc78ae242b1dd9186654d6de49101591fe7f Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Wed Jan 30 15:11:46 2019 +0300 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Wed Feb 13 10:53:41 2019 +0100 android: Call javascript code from java Change-Id: I29f1d0f672d262218ca82d8c9e1c10696c5b26bf diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 3935e984c..e7372732b 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -7,7 +7,7 @@ android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" - android:theme="@style/AppTheme"> + android:theme="@style/Theme.AppCompat.NoActionBar"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> diff --git a/android/app/src/main/assets/html/index.html b/android/app/src/main/assets/html/index.html index b9222d56e..5f61e5f83 100644 --- a/android/app/src/main/assets/html/index.html +++ b/android/app/src/main/assets/html/index.html @@ -12,6 +12,7 @@ <h2>Call java code from javascript</h2> <button type="button" onclick="callGetStringIndirect()"> Click here </button> <p id="string1"></p> + <p id="string2"></p> </div> </body> </html> diff --git a/android/app/src/main/assets/js/hello.js b/android/app/src/main/assets/js/hello.js index 04826bbb3..d26787f4b 100644 --- a/android/app/src/main/assets/js/hello.js +++ b/android/app/src/main/assets/js/hello.js @@ -6,3 +6,7 @@ function callGetStringIndirect(){ string = window.MainHandler.getString("test"); document.getElementById('string1').innerHTML = string; } + +function helloFromJavascript(){ + document.getElementById('string2').innerHTML = "Hello from javascript"; +} diff --git a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java index da331547e..121e9cc9c 100644 --- a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java +++ b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java @@ -10,9 +10,11 @@ package org.libreoffice.androidapp; import android.os.Bundle; +import android.view.View; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; +import android.widget.Button; import androidx.appcompat.app.AppCompatActivity; @@ -23,17 +25,23 @@ public class MainActivity extends AppCompatActivity { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); - WebView browser = findViewById(R.id.browser); + final WebView browser = findViewById(R.id.browser); browser.setWebViewClient(new WebViewClient()); WebSettings browserSettings = browser.getSettings(); browserSettings.setJavaScriptEnabled(true); - - browser.loadUrl("file:///android_asset/html/index.html"); - browser.addJavascriptInterface(new JavaScriptInterface(), "MainHandler"); + browser.loadUrl("file:///android_asset/html/index.html"); + Button jsButton = findViewById(R.id.js_button); + jsButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + browser.loadUrl("javascript:helloFromJavascript()"); + } + } + ); } } diff --git a/android/app/src/main/res/layout/activity_main.xml b/android/app/src/main/res/layout/activity_main.xml index 6f02728ee..5ae664ca6 100644 --- a/android/app/src/main/res/layout/activity_main.xml +++ b/android/app/src/main/res/layout/activity_main.xml @@ -9,6 +9,24 @@ <WebView android:id="@+id/browser" android:layout_width="match_parent" - android:layout_height="match_parent"/> + android:layout_height="365dp" + tools:layout_editor_absoluteX="0dp" + tools:layout_editor_absoluteY="0dp" /> + + <Button + android:id="@+id/js_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="162dp" + android:layout_marginLeft="162dp" + android:layout_marginTop="166dp" + android:layout_marginEnd="162dp" + android:layout_marginRight="162dp" + android:layout_marginBottom="149dp" + android:text="Call JS" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/browser" /> </androidx.constraintlayout.widget.ConstraintLayout> commit 3a748a214202ea7c6d0bbea985a4ce61c5cf2573 Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Wed Jan 30 10:19:22 2019 +0300 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Wed Feb 13 10:53:41 2019 +0100 android: Call java code from javascript Change-Id: I5b2907d6a6941d8debaf3150789f272f72413536 diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 9eca638d5..3935e984c 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -17,4 +17,6 @@ </activity> </application> + <uses-permission android:name="android.permission.INTERNET" /> + </manifest> diff --git a/android/app/src/main/assets/html/index.html b/android/app/src/main/assets/html/index.html index 68d08485c..b9222d56e 100644 --- a/android/app/src/main/assets/html/index.html +++ b/android/app/src/main/assets/html/index.html @@ -1,9 +1,17 @@ +<!DOCTYPE html> +<head> + <script src="file:///android_asset/js/hello.js"></script> +</head> <html> - <header> - <title>Online App</title> - </header> - <body> - Hello world + <div align="center"> + <h1>Welcome</h1> + <button type="button" onclick="sayHello()"> Click here </button> + <p id="answer"></p> + + <h2>Call java code from javascript</h2> + <button type="button" onclick="callGetStringIndirect()"> Click here </button> + <p id="string1"></p> + </div> </body> </html> diff --git a/android/app/src/main/assets/js/hello.js b/android/app/src/main/assets/js/hello.js new file mode 100644 index 000000000..04826bbb3 --- /dev/null +++ b/android/app/src/main/assets/js/hello.js @@ -0,0 +1,8 @@ +function sayHello(){ + document.getElementById("answer").innerHTML = "Hello there"; +} + +function callGetStringIndirect(){ + string = window.MainHandler.getString("test"); + document.getElementById('string1').innerHTML = string; +} diff --git a/android/app/src/main/java/org/libreoffice/androidapp/JavaScriptInterface.java b/android/app/src/main/java/org/libreoffice/androidapp/JavaScriptInterface.java new file mode 100644 index 000000000..c1d28c8ed --- /dev/null +++ b/android/app/src/main/java/org/libreoffice/androidapp/JavaScriptInterface.java @@ -0,0 +1,22 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +package org.libreoffice.androidapp; + +import android.webkit.JavascriptInterface; + +public class JavaScriptInterface { + + @JavascriptInterface + public String getString(String aString) { + return aString + " -> came from JAVA"; + } +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java index 6438021c2..da331547e 100644 --- a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java +++ b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java @@ -30,6 +30,10 @@ public class MainActivity extends AppCompatActivity { browserSettings.setJavaScriptEnabled(true); browser.loadUrl("file:///android_asset/html/index.html"); + + browser.addJavascriptInterface(new JavaScriptInterface(), "MainHandler"); + + } } commit 52f2e78b9d1d500137539a5088a527515dfda21e Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Tue Jan 29 17:08:17 2019 +0300 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Wed Feb 13 10:53:41 2019 +0100 android: Embed a html file into webview Change-Id: I73b3c7ad7a874cb90f33614d1d4bd0cb88b91117 diff --git a/android/app/src/main/assets/html/index.html b/android/app/src/main/assets/html/index.html new file mode 100644 index 000000000..68d08485c --- /dev/null +++ b/android/app/src/main/assets/html/index.html @@ -0,0 +1,9 @@ +<html> + <header> + <title>Online App</title> + </header> + + <body> + Hello world + </body> +</html> diff --git a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java index 0790c3708..6438021c2 100644 --- a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java +++ b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java @@ -29,7 +29,7 @@ public class MainActivity extends AppCompatActivity { WebSettings browserSettings = browser.getSettings(); browserSettings.setJavaScriptEnabled(true); - browser.loadUrl("http://www.libreoffice.org"); + browser.loadUrl("file:///android_asset/html/index.html"); } } commit 5f8819a749545009756bf2b73162eb030c328e8d Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Tue Jan 29 16:34:33 2019 +0300 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Wed Feb 13 10:53:41 2019 +0100 android: Enable javascript Change-Id: I841b0cfd50b2be6a946ba59571f4b15535354fcb diff --git a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java index a38836b51..0790c3708 100644 --- a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java +++ b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java @@ -10,6 +10,7 @@ package org.libreoffice.androidapp; import android.os.Bundle; +import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; @@ -24,6 +25,10 @@ public class MainActivity extends AppCompatActivity { WebView browser = findViewById(R.id.browser); browser.setWebViewClient(new WebViewClient()); + + WebSettings browserSettings = browser.getSettings(); + browserSettings.setJavaScriptEnabled(true); + browser.loadUrl("http://www.libreoffice.org"); } } commit 02c679c9d6eb8a1a3a93a4b6ba38a2f4705835d3 Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Tue Jan 29 15:52:52 2019 +0300 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Wed Feb 13 10:53:37 2019 +0100 android: Inital commit of the Java pieces. Change-Id: I895d5aaaf7217b7fd556f7805c42d3ec1bdfc22d diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4dbb54368..9eca638d5 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -2,15 +2,12 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.libreoffice.androidapp"> - <!--application + <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" - android:theme="@style/AppTheme"--> - <application - android:allowBackup="true" - android:supportsRtl="true"> + android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> diff --git a/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java new file mode 100644 index 000000000..a38836b51 --- /dev/null +++ b/android/app/src/main/java/org/libreoffice/androidapp/MainActivity.java @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +package org.libreoffice.androidapp; + +import android.os.Bundle; +import android.webkit.WebView; +import android.webkit.WebViewClient; + +import androidx.appcompat.app.AppCompatActivity; + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + WebView browser = findViewById(R.id.browser); + browser.setWebViewClient(new WebViewClient()); + browser.loadUrl("http://www.libreoffice.org"); + } +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 000000000..1f6bb2906 --- /dev/null +++ b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> diff --git a/android/app/src/main/res/drawable/ic_launcher_background.xml b/android/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 000000000..0d025f9bf --- /dev/null +++ b/android/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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..6f02728ee --- /dev/null +++ b/android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".MainActivity"> + + <WebView + android:id="@+id/browser" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + +</androidx.constraintlayout.widget.ConstraintLayout> diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 000000000..eca70cfe5 --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000..eca70cfe5 --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..898f3ed59 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 000000000..dffca3601 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..64ba76f75 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 000000000..dae5e0823 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..e5ed46597 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..14ed0af35 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..b0907cac3 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..d8ae03154 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..2c18de9e6 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..beed3cdd2 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml new file mode 100644 index 000000000..69b22338c --- /dev/null +++ b/android/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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..8a7801e96 --- /dev/null +++ b/android/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ +<resources> + <string name="app_name">OnlineApp</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..5885930df --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits