apkfuckery/com.discord/res/layout/widget_create_channel.xml
2020-09-16 23:45:23 +00:00

35 lines
No EOL
5.5 KiB
XML

<?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 android:title="@string/create_channel" style="@style/AppTheme.Toolbar" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView style="@style/AppTheme.AppBarScrollingViewBehavior">
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
<com.google.android.material.textfield.TextInputLayout android:id="@id/create_channel_name_layout" android:layout_margin="16.0dip" android:hint="@string/form_label_channel_name" style="@style/UiKit.TextInputLayout.Primary">
<com.google.android.material.textfield.TextInputEditText android:maxLength="100" style="@style/UiKit.TextInputLayout.EditText.SingleLine" />
</com.google.android.material.textfield.TextInputLayout>
<View style="@style/UiKit.Settings.Divider" />
<LinearLayout android:id="@id/create_channel_type_container" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:gravity="center_vertical" android:layout_marginTop="16.0dip" android:text="@string/channel_type" android:textAllCaps="true" android:layout_marginStart="16.0dip" style="@style/UiKit.TextView.Semibold" />
<RelativeLayout android:id="@id/create_channel_text_container" android:background="?selectableItemBackground" android:paddingTop="8.0dip" android:paddingBottom="8.0dip" android:layout_marginTop="8.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip" style="@style/UiKit.ViewGroup.RelativeLayout">
<TextView android:textColor="?primary_100" android:text="@string/text_channel" android:drawablePadding="8.0dip" android:layout_centerVertical="true" android:layout_alignParentStart="true" app:drawableStartCompat="@drawable/ic_channel_text_16dp" style="@style/UiKit.TextView" />
<RadioButton android:id="@id/create_channel_text_radio" android:background="@null" android:focusable="false" android:clickable="false" android:layout_centerVertical="true" android:layout_alignParentEnd="true" style="@style/UiKit.RadioButton" />
</RelativeLayout>
<RelativeLayout android:id="@id/create_channel_voice_container" android:background="?selectableItemBackground" android:paddingTop="8.0dip" android:paddingBottom="8.0dip" android:layout_marginBottom="8.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip" style="@style/UiKit.ViewGroup.RelativeLayout">
<TextView android:textColor="?primary_100" android:text="@string/voice_channel" android:drawablePadding="8.0dip" android:layout_alignBaseline="@id/create_channel_voice_radio" android:layout_alignBottom="@id/create_channel_voice_radio" android:layout_alignParentStart="true" app:drawableStartCompat="@drawable/ic_channel_voice_16dp" style="@style/UiKit.TextView" />
<RadioButton android:id="@id/create_channel_voice_radio" android:background="@null" android:focusable="false" android:clickable="false" android:layout_centerVertical="true" android:layout_alignParentEnd="true" style="@style/UiKit.RadioButton" />
</RelativeLayout>
</LinearLayout>
<View style="@style/UiKit.Settings.Divider" />
<RelativeLayout android:id="@id/create_channel_private_container" android:paddingTop="16.0dip" android:paddingBottom="8.0dip" android:layout_marginBottom="8.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip" style="@style/UiKit.ViewGroup.RelativeLayout">
<TextView android:textColor="?primary_100" android:id="@id/create_channel_private_title" android:layout_marginTop="8.0dip" android:text="@string/private_channel" android:drawablePadding="8.0dip" android:layout_alignParentStart="true" app:drawableStartCompat="@drawable/ic_channel_lock_16dp" style="@style/UiKit.TextView" />
<TextView android:id="@id/create_channel_private_info" android:layout_marginTop="16.0dip" android:text="@string/private_channel_note" android:layout_below="@id/create_channel_private_title" android:layout_marginStart="24.0dip" android:layout_alignParentStart="true" style="@style/UiKit.TextView" />
<androidx.appcompat.widget.SwitchCompat android:id="@id/create_channel_private_switch" android:background="@null" android:focusable="false" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_alignParentTop="true" android:layout_alignParentEnd="true" />
</RelativeLayout>
<View style="@style/UiKit.Settings.Divider" />
<TextView android:gravity="center_vertical" android:id="@id/create_channel_role_header" android:visibility="gone" android:layout_margin="16.0dip" android:text="@string/form_label_channel_permissions" android:textAllCaps="true" style="@style/UiKit.TextView.Semibold" />
<androidx.recyclerview.widget.RecyclerView android:id="@id/create_channel_role_access_recycler" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>