discord-jadx/app/src/main/res/layout/widget_text_channel_setting...

59 lines
8.1 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/res_2131952600_uikit_viewgroup_page">
<com.google.android.material.appbar.AppBarLayout style="@style/res_2131951638_apptheme_appbarlayout_flat">
<androidx.appcompat.widget.Toolbar style="@style/res_2131951666_apptheme_toolbar"/>
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView android:id="@+id/scroll_view" style="@style/res_2131952598_uikit_viewgroup_nestedscrollview_appbarscrollingviewbehavior">
<LinearLayout android:paddingBottom="@dimen/padding_bottom_fab_screen" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<LinearLayout android:id="@+id/channel_settings_edit_wrap" android:focusable="true" android:focusableInTouchMode="true" android:descendantFocusability="beforeDescendants" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<com.google.android.material.textfield.TextInputLayout android:id="@+id/channel_settings_edit_name" android:layout_margin="16dp" android:hint="@string/form_label_channel_name" style="@style/res_2131952556_uikit_textinputlayout_primary">
<com.google.android.material.textfield.TextInputEditText style="@style/res_2131952548_uikit_textinputlayout_edittext_singleline"/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout android:id="@+id/channel_settings_edit_topic" android:layout_margin="16dp" android:hint="@string/form_label_channel_topic" style="@style/res_2131952556_uikit_textinputlayout_primary">
<com.google.android.material.textfield.TextInputEditText android:maxLines="10" android:maxLength="1024" style="@style/res_2131952545_uikit_textinputlayout_edittext_multiline"/>
</com.google.android.material.textfield.TextInputLayout>
<com.discord.views.CheckedSetting android:id="@+id/channel_settings_announcement" app:cs_text="@string/form_label_news_channel" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<View style="@style/res_2131952489_uikit_settings_divider"/>
</LinearLayout>
<LinearLayout android:id="@+id/channel_settings_pinned_messages_container" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:text="@string/pinned_messages" style="@style/res_2131952494_uikit_settings_item_header"/>
<FrameLayout style="@style/res_2131952587_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/res_2131952495_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/res_2131952489_uikit_settings_divider"/>
</LinearLayout>
<LinearLayout android:id="@+id/channel_settings_section_user_management" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:text="@string/user_management" style="@style/res_2131952494_uikit_settings_item_header"/>
<TextView android:id="@+id/channel_settings_permissions" android:text="@string/permissions" app:drawableEndCompat="@drawable/icon_carrot" app:drawableStartCompat="@drawable/ic_flag_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/res_2131952495_uikit_settings_item_icon"/>
<View style="@style/res_2131952489_uikit_settings_divider"/>
</LinearLayout>
<LinearLayout android:id="@+id/channel_settings_section_privacy_safety" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:text="@string/privacy_and_safety" style="@style/res_2131952494_uikit_settings_item_header"/>
<com.discord.views.CheckedSetting android:id="@+id/channel_settings_nsfw" app:cs_subtext="@string/form_help_nsfw" app:cs_text="@string/nsfw_title" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<View style="@style/res_2131952489_uikit_settings_divider"/>
</LinearLayout>
<LinearLayout android:id="@+id/channel_settings_section_slow_mode" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:text="@string/form_label_slowmode" style="@style/res_2131952494_uikit_settings_item_header"/>
<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/res_2131952587_uikit_viewgroup">
<TextView android:id="@+id/channel_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/channel_settings_slow_mode_cooldown_slider" style="@style/res_2131952561_uikit_textview"/>
<TextView android:layout_gravity="end" android:id="@+id/channel_settings_slow_mode_cooldown_label" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_alignBaseline="@+id/channel_settings_slowmode_label" android:layout_alignParentEnd="true" style="@style/res_2131952579_uikit_textview_subtext"/>
</RelativeLayout>
<SeekBar android:id="@+id/channel_settings_slow_mode_cooldown_slider" android:progress="0" style="@style/res_2131952486_uikit_seekbar"/>
<TextView android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:text="@string/form_help_slowmode" style="@style/res_2131952579_uikit_textview_subtext"/>
</LinearLayout>
<LinearLayout android:id="@+id/channel_settings_section_default_auto_archive_duration" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<View android:layout_marginTop="24dp" style="@style/res_2131952489_uikit_settings_divider"/>
<TextView android:text="@string/auto_archive" style="@style/res_2131952494_uikit_settings_item_header"/>
<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/res_2131952587_uikit_viewgroup">
<TextView android:id="@+id/channel_settings_default_auto_archive_label" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:text="@string/form_thread_auto_archive_section_label" android:layout_alignParentStart="true" android:labelFor="@+id/channel_settings_default_auto_archive_duration_slider" style="@style/res_2131952561_uikit_textview"/>
<TextView android:layout_gravity="end" android:id="@+id/channel_settings_default_auto_archive_duration_label" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_alignBaseline="@+id/channel_settings_default_auto_archive_label" android:layout_alignParentEnd="true" style="@style/res_2131952579_uikit_textview_subtext"/>
</RelativeLayout>
<SeekBar android:id="@+id/channel_settings_default_auto_archive_duration_slider" android:progress="0" style="@style/res_2131952486_uikit_seekbar"/>
<TextView android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:text="@string/form_help_default_auto_archive_duration" style="@style/res_2131952579_uikit_textview_subtext"/>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/channel_settings_save" android:visibility="gone" android:src="@drawable/icon_save" android:contentDescription="@string/save_changes" style="@style/res_2131952120_settings_floatingactionbutton"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>