2022-03-16 09:04:19 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-03-16 09:04:19 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2023-01-14 21:37:23 +01:00
|
|
|
android:orientation="vertical">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:background="?attr/colorPrimary"
|
|
|
|
android:elevation="4dp" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/svContent"
|
2022-03-16 09:04:19 +01:00
|
|
|
android:layout_width="match_parent"
|
2023-01-14 21:37:23 +01:00
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1"
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:fillViewport="true"
|
|
|
|
android:paddingBottom="128dp"
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:scrollbarStyle="outsideOverlay"
|
|
|
|
tools:ignore="TooManyViews,Autofill">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/instance" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvInstance"
|
|
|
|
style="@style/setting_horizontal_stretch" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/user" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvUser"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:ellipsize="start" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/nickname_label" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvUserCustom"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:padding="4dp" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/btnUserCustom"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:background="@drawable/btn_bg_transparent_round6dp"
|
|
|
|
android:contentDescription="@string/edit"
|
|
|
|
android:src="@drawable/ic_edit"
|
|
|
|
app:tint="?attr/colorTextContent" />
|
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:labelFor="@+id/etDefaultText"
|
|
|
|
android:text="@string/toot_default_text" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etDefaultText"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:inputType="textMultiLine"
|
|
|
|
android:padding="4dp" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/public_profile" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<FrameLayout
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:layout_height="64dp">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<jp.juggler.subwaytooter.view.MyNetworkImageView
|
|
|
|
android:id="@+id/ivProfileHeader"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<jp.juggler.subwaytooter.view.MyNetworkImageView
|
|
|
|
android:id="@+id/ivProfileAvatar"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:scaleType="fitCenter" />
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnProfileAvatar"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:text="@string/change_avatar"
|
|
|
|
android:textAllCaps="false" />
|
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnProfileHeader"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:text="@string/change_header"
|
|
|
|
android:textAllCaps="false" />
|
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:labelFor="@+id/etDisplayName"
|
|
|
|
android:text="@string/display_name" />
|
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etDisplayName"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="text"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/btnDisplayName"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:background="@drawable/btn_bg_transparent_round6dp"
|
|
|
|
android:contentDescription="@string/post"
|
|
|
|
android:src="@drawable/ic_send"
|
|
|
|
app:tint="?attr/colorTextContent" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:labelFor="@+id/etNote"
|
|
|
|
android:text="@string/note" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etNote"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="textMultiLine" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/btnNote"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:background="@drawable/btn_bg_transparent_round6dp"
|
|
|
|
android:contentDescription="@string/post"
|
|
|
|
android:src="@drawable/ic_send"
|
|
|
|
app:tint="?attr/colorTextContent" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbLocked"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:text="@string/locked_account" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-02-06 10:56:35 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:text="@string/profile_metadata" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/btnFields"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:background="@drawable/btn_bg_transparent_round6dp"
|
|
|
|
android:contentDescription="@string/post"
|
|
|
|
android:src="@drawable/ic_send"
|
|
|
|
app:tint="?attr/colorTextContent" />
|
|
|
|
</LinearLayout>
|
2023-01-14 21:37:23 +01:00
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form_fields">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_wrap"
|
|
|
|
android:labelFor="@+id/etFieldName1"
|
|
|
|
android:text="@string/field_name1" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etFieldName1"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form_fields">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_wrap"
|
|
|
|
android:labelFor="@+id/etFieldValue1"
|
|
|
|
android:text="@string/field_value1" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etFieldValue1"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="textMultiLine" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form_fields">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_wrap"
|
|
|
|
android:labelFor="@+id/etFieldName2"
|
|
|
|
android:text="@string/field_name2" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etFieldName2"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form_fields">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_wrap"
|
|
|
|
android:labelFor="@+id/etFieldValue2"
|
|
|
|
android:text="@string/field_value2" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etFieldValue2"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="textMultiLine" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form_fields">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_wrap"
|
|
|
|
android:labelFor="@+id/etFieldName3"
|
|
|
|
android:text="@string/field_name3" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etFieldName3"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form_fields">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_wrap"
|
|
|
|
android:labelFor="@+id/etFieldValue3"
|
|
|
|
android:text="@string/field_value3" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etFieldValue3"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="textMultiLine" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form_fields">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_wrap"
|
|
|
|
android:labelFor="@+id/etFieldName4"
|
|
|
|
android:text="@string/field_name4" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etFieldName4"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="text" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form_fields">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/setting_wrap"
|
|
|
|
android:labelFor="@+id/etFieldValue4"
|
|
|
|
android:text="@string/field_value4" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etFieldValue4"
|
|
|
|
style="@style/setting_horizontal_stretch"
|
|
|
|
android:inputType="textMultiLine" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/actions" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnOpenBrowser"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:ellipsize="start"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
tools:text="open http://mastodon.juggler.jp/" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnAccessToken"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:ellipsize="start"
|
|
|
|
android:text="@string/update_access_token"
|
|
|
|
android:textAllCaps="false" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnInputAccessToken"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:ellipsize="start"
|
|
|
|
android:text="@string/input_access_token"
|
|
|
|
android:textAllCaps="false" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnLoadPreference"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:ellipsize="start"
|
|
|
|
android:text="@string/load_preference_from_web_ui"
|
|
|
|
android:textAllCaps="false" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnAccountRemove"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:ellipsize="start"
|
|
|
|
android:text="@string/account_remove"
|
|
|
|
android:textAllCaps="false" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/default_status_visibility" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnVisibility"
|
|
|
|
style="@style/setting_horizontal_stretch" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:labelFor="@+id/etLanguageCode"
|
|
|
|
android:text="@string/post_language_code" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spLanguageCode"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minHeight="40dp" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/mark_sensitive_by_default" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/swMarkSensitive"
|
|
|
|
style="@style/setting_wrap" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/sensitive_content_default_open" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/swNSFWOpen"
|
|
|
|
style="@style/setting_wrap" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/cw_default_open" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/swExpandCW"
|
|
|
|
style="@style/setting_wrap" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
<TextView
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/confirmation" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmFollow"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/follow" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmFollowLockedUser"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/follow_locked_user" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmUnfollow"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/unfollow" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmBoost"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/boost" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmUnboost"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/unboost" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmFavourite"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/favourite" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmUnfavourite"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/unfavourite" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmUnbookmark"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/unbookmark" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmToot"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/act_post" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbConfirmReaction"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/reaction" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/notifications" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationMention"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/mention2" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationBoost"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/boost" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationFavourite"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/favourite" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationFollow"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/follow" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationFollowRequest"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/follow_request" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationReaction"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/reaction" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationVote"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/vote_polls" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationPost"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/notification_type_post" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationUpdate"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/notification_type_update" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotificationStatusReference"
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:text="@string/notification_type_status_reference_fedibird" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-02-06 10:56:35 +01:00
|
|
|
<View style="@style/setting_divider" />
|
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
2023-02-06 10:56:35 +01:00
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/push_notification_use" />
|
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/swNotificationPushEnabled"
|
|
|
|
style="@style/setting_wrap" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2023-02-08 10:55:49 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:id="@+id/tvNotificationAccentColor"
|
|
|
|
android:text="@string/notification_accent_color" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
style="@style/setting_row_form"
|
|
|
|
android:id="@+id/llNotificationAccentColor"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnNotificationAccentColorEdit"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/edit"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnNotificationAccentColorReset"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/reset"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<View android:id="@+id/vNotificationAccentColorColor"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2023-02-06 10:56:35 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvPushPolicyDesc"
|
|
|
|
style="@style/setting_row_label"
|
2023-01-14 21:37:23 +01:00
|
|
|
android:text="@string/push_notification_filter" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spPushPolicy"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minHeight="40dp" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-02-06 10:56:35 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvPushActions"
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/actions" />
|
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnPushSubscription"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:ellipsize="start"
|
|
|
|
android:text="@string/update_push_subscription"
|
|
|
|
android:textAllCaps="false" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnPushSubscriptionNotForce"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:ellipsize="start"
|
|
|
|
android:text="@string/update_push_subscription_not_force"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:visibility="gone" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-02-06 10:56:35 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
2023-02-08 10:55:49 +01:00
|
|
|
android:text="@string/pull_notification_use" />
|
2023-02-06 10:56:35 +01:00
|
|
|
|
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/swNotificationPullEnabled"
|
|
|
|
style="@style/setting_wrap" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
2023-02-06 10:56:35 +01:00
|
|
|
android:id="@+id/tvDontShowTimeout"
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_label"
|
2023-02-06 10:56:35 +01:00
|
|
|
android:text="@string/dont_show_timeout" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-02-06 10:56:35 +01:00
|
|
|
<LinearLayout style="@style/setting_row_form">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/swDontShowTimeout"
|
|
|
|
style="@style/setting_wrap" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-02-06 10:56:35 +01:00
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvPullActions"
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/actions" />
|
2023-01-14 21:37:23 +01:00
|
|
|
<Button
|
2023-02-06 10:56:35 +01:00
|
|
|
android:id="@+id/btnResetNotificationTracking"
|
2023-01-14 21:37:23 +01:00
|
|
|
style="@style/setting_row_button"
|
2023-02-06 10:56:35 +01:00
|
|
|
android:ellipsize="start"
|
|
|
|
android:text="@string/reset_notification_tracking_status"
|
2023-01-14 21:37:23 +01:00
|
|
|
android:textAllCaps="false" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-02-06 10:56:35 +01:00
|
|
|
<!-- <View style="@style/setting_divider" />-->
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- style="@style/setting_row_label"-->
|
|
|
|
<!-- android:text="@string/notification_style_after_oreo" />-->
|
|
|
|
<!-- <Button-->
|
|
|
|
<!-- android:id="@+id/btnNotificationStyleEdit"-->
|
|
|
|
<!-- style="@style/setting_row_button"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:text="@string/default_"-->
|
|
|
|
<!-- android:textAllCaps="false" />-->
|
|
|
|
<!-- <Button-->
|
|
|
|
<!-- android:id="@+id/btnNotificationStyleEditReply"-->
|
|
|
|
<!-- style="@style/setting_row_button"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:text="@string/reply"-->
|
|
|
|
<!-- android:textAllCaps="false" />-->
|
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:labelFor="@+id/etMaxTootChars"
|
|
|
|
android:text="@string/max_toot_chars" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etMaxTootChars"
|
|
|
|
style="@style/setting_edit_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:inputType="number" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:labelFor="@+id/etMediaSizeMax"
|
|
|
|
android:text="@string/media_attachment_max_byte_size" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etMediaSizeMax"
|
|
|
|
style="@style/setting_edit_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:inputType="number" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/resize_image" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spResizeImage"
|
|
|
|
style="@style/setting_row_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:labelFor="@+id/etMovieSizeMax"
|
|
|
|
android:text="@string/media_attachment_max_byte_size_movie" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/option_deprecated_mastodon342" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etMovieSizeMax"
|
|
|
|
style="@style/setting_edit_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:inputType="number" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<View style="@style/setting_divider" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label"
|
|
|
|
android:text="@string/movie_transcode" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label_indent1"
|
|
|
|
android:text="@string/movie_transcode_mode" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spMovieTranscodeMode"
|
|
|
|
style="@style/setting_spinner_indent1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minHeight="40dp" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label_indent1"
|
|
|
|
android:text="@string/movie_transcode_max_bitrate" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etMovieBitrate"
|
|
|
|
style="@style/setting_edit_text_indent1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:inputType="number" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label_indent1"
|
|
|
|
android:text="@string/movie_transcode_max_frame_rate" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etMovieFrameRate"
|
|
|
|
style="@style/setting_edit_text_indent1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:inputType="numberDecimal" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<TextView
|
|
|
|
style="@style/setting_row_label_indent1"
|
|
|
|
android:text="@string/movie_transcode_max_square_pixels" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etMovieSquarePixels"
|
|
|
|
style="@style/setting_edit_text_indent1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:inputType="number" />
|
2022-03-16 09:04:19 +01:00
|
|
|
|
2023-01-14 21:37:23 +01:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|