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

48 lines
5.3 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 style="@style/UiKit_ViewGroup_NestedScrollView_AppBarScrollingViewBehavior">
<LinearLayout android:paddingBottom="@dimen/padding_bottom_fab_screen" style="@style/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/UiKit_TextInputLayout_Primary">
<com.google.android.material.textfield.TextInputEditText android:imeOptions="actionDone" 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="16dp" android:hint="@string/form_label_channel_topic" style="@style/UiKit_TextInputLayout_Primary">
<com.google.android.material.textfield.TextInputEditText android:maxLines="10" style="@style/UiKit_TextInputLayout_EditText_MultiLine"/>
</com.google.android.material.textfield.TextInputLayout>
<View android:id="@+id/bitrate_divider" style="@style/UiKit_Settings_Divider"/>
<TextView android:id="@+id/bitrate_title" android:text="@string/form_label_bitrate" style="@style/UiKit_Settings_Item_Header"/>
<LinearLayout android:id="@+id/settings_bitrate" style="@style/UiKit_Settings_Item">
<TextView android:id="@+id/current_bitrate_display" style="@style/UiKit_TextView"/>
<SeekBar android:id="@+id/bitrate_seekbar" android:max="88" style="@style/UiKit_SeekBar"/>
</LinearLayout>
<TextView android:id="@+id/settings_bitrate_help" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_marginBottom="8dp" style="@style/UiKit_TextView_Subtext"/>
<View android:id="@+id/user_limit_divider" style="@style/UiKit_Settings_Divider"/>
<TextView android:id="@+id/user_limit_title" android:text="@string/form_label_user_limit" style="@style/UiKit_Settings_Item_Header"/>
<LinearLayout android:id="@+id/settings_user_limit" style="@style/UiKit_Settings_Item">
<TextView android:id="@+id/current_user_limit_display" android:text="@string/no_user_limit" style="@style/UiKit_TextView"/>
<SeekBar android:id="@+id/user_limit_seekbar" android:max="99" style="@style/UiKit_SeekBar"/>
</LinearLayout>
<TextView android:id="@+id/settings_user_limit_help" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_marginBottom="8dp" style="@style/UiKit_TextView_Subtext"/>
<View android:id="@+id/region_override_divider" style="@style/UiKit_Settings_Divider"/>
<LinearLayout android:id="@+id/channel_settings_region_override_container" style="@style/UiKit_ViewGroup_LinearLayout">
<TextView android:text="@string/form_label_region_override" style="@style/UiKit_Settings_Item_Label"/>
<TextView android:id="@+id/channel_settings_region_override" style="@style/UiKit_Settings_Item_Addition"/>
</LinearLayout>
<TextView android:id="@+id/channel_settings_region_override_help" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_marginBottom="8dp" style="@style/UiKit_TextView_Subtext"/>
<View style="@style/UiKit_Settings_Divider"/>
<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"/>
<TextView android:id="@+id/channel_settings_permissions" android:text="@string/permissions" app:drawableStartCompat="@drawable/ic_flag_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
</LinearLayout>
<LinearLayout android:id="@+id/channel_settings_section_privacy_safety" style="@style/UiKit_ViewGroup_LinearLayout">
<View style="@style/UiKit_Settings_Divider"/>
<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"/>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/channel_settings_save" android:contentDescription="@string/save_changes" style="@style/Settings_FloatingActionButton_Save"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>