Add dynamic notification

Co-authored-by: Moe <moe@example.com>
Co-authored-by: 世界 <i@sekai.icu>
This commit is contained in:
世界
2023-11-09 14:29:47 +08:00
parent 71acd29526
commit 4295c30503
8 changed files with 122 additions and 28 deletions

View File

@@ -16,7 +16,6 @@
<com.google.android.material.card.MaterialCardView
android:id="@+id/appSettingsCard"
style="?attr/materialCardViewElevatedStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -38,11 +37,28 @@
android:textAppearance="?attr/textAppearanceTitleLarge" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/checkUpdateEnabled"
android:id="@+id/dynamicNotificationEnabled"
style="@style/Widget.Material3.TextInputLayout.FilledBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:hint="@string/dynamic_notification">
<AutoCompleteTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="none"
android:text="@string/disabled"
app:simpleItems="@array/enabled" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/checkUpdateEnabled"
style="@style/Widget.Material3.TextInputLayout.FilledBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/check_update_atomic">
<AutoCompleteTextView

View File

@@ -81,10 +81,11 @@
<string name="profile">Profile</string>
<string name="core_version">Version</string>
<string name="core">Core</string>
<string name="dynamic_notification">Display realtime speed in notification</string>
<string name="core_data_size">Data Size</string>
<string name="check_update_atomic">Atomic Check Update</string>
<string name="check_update">Check Update</string>
<string name="title_app_settings">App Settings</string>
<string name="title_app_settings">App</string>
<string name="about_title">About</string>
<string name="app_description">Android client for sing-box, the universal proxy platform.</string>
<string name="documentation_button">Documentation</string>