2020-05-17 12:40:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout style="@style/UiKit.ViewGroup.Page"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<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/channel_settings_edit_wrap" android:focusable="true" android:focusableInTouchMode="true" android:descendantFocusability="beforeDescendants" style="@style/UiKit.ViewGroup.LinearLayout">
|
2020-07-08 16:44:49 +00:00
|
|
|
<com.google.android.material.textfield.TextInputLayout android:id="@id/channel_settings_edit_name" android:layout_margin="@dimen/uikit_spacing_large" android:hint="@string/form_label_channel_name" style="@style/UiKit.TextInputLayout.Primary">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText style="@style/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="@dimen/uikit_spacing_large" android:hint="@string/form_label_channel_topic" style="@style/UiKit.TextInputLayout.Primary">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText style="@style/UiKit.TextInputLayout.EditText.MultiLine" />
|
2020-05-17 12:40:10 +00:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<View 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">
|
2020-08-20 19:28:48 +00:00
|
|
|
<TextView android:id="@id/channel_settings_pinned_messages" android:text="@string/pinned_messages" android:drawableStart="?ic_pins_a60" android:drawableEnd="@drawable/icon_carrot" style="@style/UiKit.Settings.Item.Icon" />
|
2020-05-17 12:40:10 +00:00
|
|
|
<View android:id="@id/channel_settings_pinned_messages_disabled_overlay" android:layout_width="fill_parent" android:layout_height="fill_parent" />
|
|
|
|
</FrameLayout>
|
|
|
|
<View style="@style/UiKit.Settings.Divider" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:id="@id/channel_settings_section_user_management" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
|
|
<TextView android:text="@string/user_management" style="@style/UiKit.Settings.Item.Header" />
|
2020-08-20 19:28:48 +00:00
|
|
|
<TextView android:id="@id/channel_settings_permissions" android:text="@string/permissions" android:drawableStart="?ic_roles_a60" android:drawableEnd="@drawable/icon_carrot" style="@style/UiKit.Settings.Item.Icon" />
|
2020-05-17 12:40:10 +00:00
|
|
|
<View style="@style/UiKit.Settings.Divider" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:id="@id/channel_settings_section_privacy_safety" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
|
|
<TextView android:text="@string/privacy_and_safety" style="@style/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/UiKit.CheckedSetting.Themed" />
|
|
|
|
<View style="@style/UiKit.Settings.Divider" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:id="@id/channel_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="fill_parent" android:layout_height="wrap_content" style="@style/UiKit.ViewGroup">
|
2020-08-04 06:02:43 +00:00
|
|
|
<TextView android:id="@id/channel_settings_slowmode_label" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/form_label_slowmode_cooldown" android:layout_alignParentStart="true" android:labelFor="@id/channel_settings_slow_mode_cooldown_slider" style="@style/UiKit.TextView" />
|
2020-05-17 12:40:10 +00:00
|
|
|
<TextView android:layout_gravity="end" android:id="@id/channel_settings_slow_mode_cooldown_label" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_alignBaseline="@id/channel_settings_slowmode_label" android:layout_alignParentEnd="true" style="@style/UiKit.TextView.Subtext" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<SeekBar android:id="@id/channel_settings_slow_mode_cooldown_slider" android:progress="0" style="@style/UiKit.SeekBar" />
|
|
|
|
<TextView android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/form_help_slowmode" style="@style/UiKit.TextView.Subtext" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
2020-08-04 06:02:43 +00:00
|
|
|
<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/Settings.FloatingActionButton" />
|
2020-05-17 12:40:10 +00:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|