diff options
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/fragment_acknowledgement.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/layout/item_acknowledgement.xml | 23 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/main_preferences.xml | 5 |
4 files changed, 36 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_acknowledgement.xml b/app/src/main/res/layout/fragment_acknowledgement.xml new file mode 100644 index 00000000..5f164c83 --- /dev/null +++ b/app/src/main/res/layout/fragment_acknowledgement.xml @@ -0,0 +1,6 @@ +<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/recycler_view_acknowledgement_fragment" + tools:context="Settings.AcknowledgementFragment"/> diff --git a/app/src/main/res/layout/item_acknowledgement.xml b/app/src/main/res/layout/item_acknowledgement.xml new file mode 100644 index 00000000..543c6829 --- /dev/null +++ b/app/src/main/res/layout/item_acknowledgement.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground"> + + <TextView + android:id="@+id/name_text_view_item_acknowledgement" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/primaryTextColor" + android:textSize="16sp" /> + + <TextView + android:id="@+id/introduction_text_view_item_acknowledgement" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" /> + +</LinearLayout>
\ 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 37a3518f..8a88d944 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -146,6 +146,7 @@ <string name="select_from_gallery">Select a picture</string> <string name="select_again">Select again</string> <string name="error_getting_image">Error getting the image</string> + <string name="error_getting_video">Error getting the video</string> <string name="no_camera_available">No camera app available</string> <string name="error_creating_temp_file">Error creating temp file</string> @@ -258,6 +259,7 @@ <string name="settings_theme_dark_theme_summary">Dark Theme</string> <string name="settings_theme_system_default_summary">Device default</string> <string name="settings_enable_nsfw_title">Enable NSFW</string> + <string name="settings_acknowledgement_master_title">Acknowledgement</string> <string name="no_link_available">Cannot get the link</string> </resources> diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index 1578ff63..7ccfa301 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -21,4 +21,9 @@ app:key="nsfw" app:title="@string/settings_enable_nsfw_title"/> + <Preference + app:key="acknowledgement_master" + app:title="@string/settings_acknowledgement_master_title" + app:fragment="Settings.AcknowledgementFragment" /> + </androidx.preference.PreferenceScreen>
\ No newline at end of file |