mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 21:39:50 +02:00
Add an acknowledgement page in settings.
This commit is contained in:
6
app/src/main/res/layout/fragment_acknowledgement.xml
Normal file
6
app/src/main/res/layout/fragment_acknowledgement.xml
Normal file
@@ -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"/>
|
23
app/src/main/res/layout/item_acknowledgement.xml
Normal file
23
app/src/main/res/layout/item_acknowledgement.xml
Normal file
@@ -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>
|
@@ -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>
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user