560 lines
26 KiB
XML
560 lines
26 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.circularreveal.CircularRevealFrameLayout 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">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ScrollView
|
|
android:id="@+id/swipeContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="@dimen/fab_margin"
|
|
android:layout_marginLeft="@dimen/fab_margin"
|
|
android:layout_marginEnd="@dimen/fab_margin"
|
|
android:layout_marginRight="@dimen/fab_margin"
|
|
android:layout_marginBottom="20dp"
|
|
android:paddingLeft="@dimen/drawer_padding"
|
|
android:paddingRight="@dimen/drawer_padding"
|
|
android:scrollbars="none"
|
|
tools:ignore="UselessParent">
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@dimen/fab_margin"
|
|
android:paddingRight="@dimen/fab_margin"
|
|
tools:ignore="UselessParent">
|
|
|
|
|
|
<!-- COMPOSE -->
|
|
<LinearLayout
|
|
android:id="@+id/settings_compose"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/set_auto_add_media_url"
|
|
android:textSize="16sp" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_auto_add_media_url"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/set_auto_store_toot"
|
|
android:textSize="16sp" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_auto_store"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- CARRIAGE RETURN AFTER MENTION IN REPLIES -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_capitalize"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_capitalize_indication"
|
|
android:textColor="@color/mastodonC2"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_capitalize"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_resize_picture"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_resize_picture_indication"
|
|
android:textColor="@color/mastodonC2"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_resize_picture"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_resize_video"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_resize_video_indication"
|
|
android:textColor="@color/mastodonC2"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_resize_video"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_watermark"
|
|
android:labelFor="@+id/set_watermark_text"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_watermark_indication"
|
|
android:textColor="@color/mastodonC2"
|
|
android:textSize="12sp" />
|
|
<EditText
|
|
android:id="@+id/set_watermark_text"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:importantForAutofill="noExcludeDescendants"
|
|
android:inputType="textUri" />
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_watermark"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<!-- WYSIWYG -->
|
|
<LinearLayout
|
|
android:id="@+id/set_wysiwyg_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_wysiwyg"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/set_wysiwyg_indication"
|
|
android:textColor="@color/mastodonC2"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_wysiwyg"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/set_automatically_split_toot"
|
|
android:textSize="16sp" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_automatically_split_toot"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/set_split_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<EditText
|
|
android:id="@+id/set_split_text"
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:inputType="number" />
|
|
|
|
<SeekBar
|
|
android:id="@+id/set_split_size"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/set_display_emoji"
|
|
android:textSize="16sp" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_display_emoji"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<!-- PUT THE WHOLE CONTENT WHEN SHARING -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/set_share_details"
|
|
android:textSize="16sp" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_share_details"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<!-- RETRIEVE METADATA -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/set_retrieve_metadata_share_from_extras"
|
|
android:textSize="16sp" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_retrieve_metadata_share_from_extras"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/toot_visibility_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/toots_visibility_tilte"
|
|
android:textSize="16sp" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/set_toot_visibility"
|
|
style="@style/colored_button"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginStart="20dp"
|
|
android:contentDescription="@string/toot_visibility_tilte"
|
|
android:padding="5dp"
|
|
android:src="@drawable/ic_public" />
|
|
</LinearLayout>
|
|
|
|
<!-- CUSTOM SHARING -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_title_custom_sharing"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_title_custom_sharing_indication"
|
|
android:textColor="@color/mastodonC2"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_custom_sharing"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<EditText
|
|
android:id="@+id/custom_sharing_url"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/settings_custom_sharing_url"
|
|
android:importantForAutofill="noExcludeDescendants"
|
|
android:inputType="textUri" />
|
|
|
|
<!-- ADD TAGS -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/set_forward_tags"
|
|
android:textSize="16sp" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_forward_tags"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/settings_option_margin"
|
|
android:layout_marginBottom="@dimen/settings_option_margin"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/set_photo_editor"
|
|
android:textSize="16sp" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/set_photo_editor"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<!-- maximum upload image retry times -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/upload_image_maximum_retry_times"
|
|
android:textSize="16sp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/max_upload_image_retry_times_value"
|
|
android:layout_width="20dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:textSize="16sp" />
|
|
|
|
<SeekBar
|
|
android:id="@+id/max_upload_image_retry_times"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:max="10" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
</FrameLayout>
|
|
</com.google.android.material.circularreveal.CircularRevealFrameLayout>
|