discord-jadx/app/src/main/res/layout/widget_thread_settings.xml

36 lines
4.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" style="@style/UiKit_ViewGroup_Page">
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme_AppBarLayout_Flat">
<androidx.appcompat.widget.Toolbar style="@style/AppTheme_Toolbar"/>
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView android:id="@+id/scroll_view" style="@style/UiKit_ViewGroup_NestedScrollView_AppBarScrollingViewBehavior">
<LinearLayout android:paddingBottom="@dimen/padding_bottom_fab_screen" style="@style/UiKit_ViewGroup_LinearLayout">
<LinearLayout android:id="@+id/thread_settings_edit_wrap" android:focusable="true" android:focusableInTouchMode="true" android:descendantFocusability="beforeDescendants" style="@style/UiKit_ViewGroup_LinearLayout">
<com.google.android.material.textfield.TextInputLayout android:id="@+id/thread_settings_edit_name" android:layout_margin="16dp" android:hint="@string/thread_name" style="@style/UiKit_TextInputLayout_Primary">
<com.google.android.material.textfield.TextInputEditText style="@style/UiKit_TextInputLayout_EditText_SingleLine"/>
</com.google.android.material.textfield.TextInputLayout>
<View style="@style/UiKit_Settings_Divider"/>
</LinearLayout>
<LinearLayout android:id="@+id/thread_settings_section_slow_mode" style="@style/UiKit_ViewGroup_LinearLayout">
<TextView android:text="@string/form_label_slowmode" style="@style/UiKit_Settings_Item_Header"/>
<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/UiKit_ViewGroup">
<TextView android:id="@+id/thread_settings_slowmode_label" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:text="@string/form_label_slowmode_cooldown" android:layout_alignParentStart="true" android:labelFor="@+id/thread_settings_slow_mode_cooldown_slider" style="@style/UiKit_TextView"/>
<TextView android:layout_gravity="end" android:id="@+id/thread_settings_slow_mode_cooldown_label" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_alignBaseline="@+id/thread_settings_slowmode_label" android:layout_alignParentEnd="true" style="@style/UiKit_TextView_Subtext"/>
</RelativeLayout>
<SeekBar android:id="@+id/thread_settings_slow_mode_cooldown_slider" android:progress="0" style="@style/UiKit_SeekBar"/>
<TextView android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:text="@string/form_help_slowmode" style="@style/UiKit_TextView_Subtext"/>
<View android:layout_marginTop="24dp" style="@style/UiKit_Settings_Divider"/>
</LinearLayout>
<LinearLayout android:id="@+id/channel_settings_pinned_messages_container" style="@style/UiKit_ViewGroup_LinearLayout">
<TextView android:text="@string/pinned_messages" style="@style/UiKit_Settings_Item_Header"/>
<FrameLayout style="@style/UiKit_ViewGroup">
<TextView android:id="@+id/channel_settings_pinned_messages" android:text="@string/pinned_messages" app:drawableEndCompat="@drawable/icon_carrot" app:drawableStartCompat="@drawable/ic_pin_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
<View android:id="@+id/channel_settings_pinned_messages_disabled_overlay" android:layout_width="match_parent" android:layout_height="match_parent"/>
</FrameLayout>
<View style="@style/UiKit_Settings_Divider"/>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/thread_settings_save" android:visibility="gone" android:src="@drawable/icon_save" android:contentDescription="@string/save_changes" style="@style/Settings_FloatingActionButton"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>