diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/dialog_about.xml | 44 | ||||
-rw-r--r-- | app/src/main/res/menu/menu_main.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/values/attrs.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 7 |
4 files changed, 56 insertions, 2 deletions
diff --git a/app/src/main/res/layout/dialog_about.xml b/app/src/main/res/layout/dialog_about.xml new file mode 100644 index 0000000..98dca7f --- /dev/null +++ b/app/src/main/res/layout/dialog_about.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout 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:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="24dp"> + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@mipmap/ic_launcher" + android:layout_marginEnd="16dp"/> + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/app_name" + android:textAppearance="@style/TextAppearance.AppCompat.Title"/> + <TextView + android:id="@+id/text_version" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + <moe.yuuta.workmode.widgets.HtmlTextView + android:id="@+id/text_copyright" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + app:html="@string/about_icon_copyright" + app:enableLinks="true" + android:textSize="12sp" + android:textColor="@android:color/black" /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Copyright © 2019 - 2019 Trumeet" + android:textSize="12sp" + android:textColor="@android:color/black" + tools:ignore="HardcodedText" /> + </LinearLayout> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index df1c7f3..de8cf2e 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -13,6 +13,8 @@ <item android:title="@string/about"> <menu> <group> + <item android:id="@+id/action_about" + android:title="@string/about" /> <item android:id="@+id/action_check_update" android:title="@string/check_update" /> <item android:id="@+id/action_oss" diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 9e90cdd..9185e25 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -5,4 +5,9 @@ <attr name="switchBarMarginEnd" format="dimension" /> <attr name="switchBarBackgroundColor" format="color" /> <attr name="switchBarBackgroundActivatedColor" format="color" /> + + <declare-styleable name="HtmlTextView"> + <attr name="html" format="string|reference" /> + <attr name="enableLinks" format="boolean|reference" /> + </declare-styleable> </resources>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 82dae90..8f7ca34 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -16,7 +16,7 @@ <string name="whitelist_toggle_title">Switch to whitelist</string> <string name="whitelist_toggle_information">These apps will be enabled and others will be disabled when you are working</string> <string name="error_load_applications">Cannot get applications</string> - <string name="error_apply">Unable to apply settings</string> + <string name="error_apply">Settings are saved but cannot be applied to system</string> <string name="feedback">Feedback</string> <string name="get_logs">Get logs</string> <string name="check_update">Check update</string> @@ -26,13 +26,16 @@ <string name="notification_title_update">%1$s is available for download</string> <string name="notification_text_update_summary">Tap here to update to the latest version</string> <string name="notification_text_update">Tap here to update to the latest version and get more features</string> + <string name="about_icon_copyright"><![CDATA[ +The icon is designed by <a href="https://twitter.com/xiaoya_er">小雅</a> + ]]></string> <!-- #Anti-Crack --> <string name="sys_id" translatable="false">Y29tLmFuZHJvaWQudmVuZGluZw==</string> <string name="app_id" translatable="false">Z2V0SW5zdGFsbGVyUGFja2FnZQ==</string> <string name="fol_id_orig" translatable="false">L2RhdGEvbWlzYy8ud29tby8=</string> <string name="fol_id" translatable="false">L2RhdGEvbWlzYy8ud29tby8uZmMvLmxvZ3Mv</string> - <string name="b6_k" translatable="true">AVA</string> + <string name="b6_k" translatable="false">AVA</string> <string name="b7_a" translatable="false">litu</string> <string name="b90_key" translatable="false">You\'re in the basement now.</string> <string name="b99_a" translatable="false">De</string> |