20 lines
4 KiB
XML
20 lines
4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:paddingTop="16dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="16dp" android:paddingEnd="16dp" style="@style/UiKit_Chat_Embed_CardView">
|
|
<ImageView android:id="@+id/thread_icon" android:background="@drawable/drawable_circle_black" android:padding="16dp" android:layout_width="64dp" android:layout_height="64dp" android:src="@drawable/ic_thread" android:contentDescription="@string/thread" android:backgroundTint="?attr/colorBackgroundAccent" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:tint="?attr/colorHeaderPrimary" style="@style/Avatar_Small"/>
|
|
<com.google.android.material.textfield.TextInputLayout android:id="@+id/thread_name_input" android:layout_marginTop="16dp" android:layout_marginBottom="16dp" android:hint="@string/thread_name" android:imeOptions="actionNext" app:errorIconTint="?attr/colorTextDanger" app:errorTextColor="?attr/colorTextDanger" style="@style/UiKit_TextInputLayout">
|
|
<com.google.android.material.textfield.TextInputEditText android:maxLength="100" android:paddingStart="16dp" android:paddingEnd="16dp" style="@style/UiKit_TextInputLayout_EditText_SingleLine"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/private_thread_toggle" android:background="@drawable/rounded_rectangle_4dp_radius" android:padding="16dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:backgroundTint="?attr/colorBackgroundSecondary">
|
|
<LinearLayout android:id="@+id/private_thread_toggle_text" android:layout_width="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toStartOf="@+id/private_thread_toggle_switch" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<LinearLayout style="@style/UiKit_ViewGroup_LinearLayout_Horizontal">
|
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:layout_marginBottom="2dp" android:text="@string/private_thread" style="@style/UiKit_TextView_Bold"/>
|
|
<TextView android:id="@+id/private_thread_toggle_badge" android:background="@drawable/rounded_rectangle_8dp_radius" android:paddingLeft="4dp" android:paddingRight="4dp" android:layout_height="wrap_content" android:text="@string/guild_settings_premium_guild_unlocked" android:drawablePadding="4dp" android:textAllCaps="true" android:layout_marginStart="4dp" android:backgroundTint="?attr/colorBackgroundSecondaryAlt" app:drawableStartCompat="@drawable/ic_boosted_badge_12dp" style="@style/UiKit_TextView_Semibold"/>
|
|
</LinearLayout>
|
|
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?attr/colorHeaderSecondary" android:text="@string/form_private_thread_description" style="@style/UiKit_TextView"/>
|
|
</LinearLayout>
|
|
<com.google.android.material.switchmaterial.SwitchMaterial android:id="@+id/private_thread_toggle_switch" android:clickable="false" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginStart="16dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/private_thread_toggle_text" app:layout_constraintTop_toTopOf="0"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<TextView android:text="@string/create_thread_header_1" style="@style/UiKit_TextView_Large"/>
|
|
<TextView android:id="@+id/auto_archive_duration" android:text="@string/create_thread_header_2" style="@style/UiKit_TextView_Large"/>
|
|
<View android:id="@+id/divider_stroke" android:background="?attr/colorBackgroundAccent" android:layout_width="match_parent" android:layout_height="0.25dp" android:layout_marginTop="16dp"/>
|
|
</LinearLayout>
|