apkfuckery/com.discord/res/layout/widget_guild_clone.xml

48 lines
7.1 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 app:navigationContentDescription="@string/close" app:navigationIcon="?ic_action_bar_close" style="@style/AppTheme.Toolbar.Transparent" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView style="@style/UiKit.ViewGroup.NestedScrollView.AppBarScrollingViewBehavior">
<com.discord.app.AppViewFlipper android:id="@id/guild_create_flipper" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
<LinearLayout android:gravity="center_horizontal" android:visibility="gone" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:layout_marginBottom="8.0dip" android:text="@string/guild_template_resolving_title" style="@style/UiKit.TextView.H2" />
<ProgressBar android:id="@id/loading_button_progress" android:layout_width="30.0dip" android:layout_height="30.0dip" />
</LinearLayout>
<LinearLayout android:gravity="center_horizontal" android:visibility="gone" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:layout_marginBottom="8.0dip" android:text="@string/guild_template_invalid_title" style="@style/UiKit.TextView.H2" />
<TextView android:layout_marginBottom="8.0dip" android:text="@string/guild_template_invalid_subtitle" style="@style/UiKit.TextView.Subtext" />
</LinearLayout>
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:textSize="@dimen/uikit_textsize_xxlarge" android:textColor="?colorHeaderPrimary" android:gravity="center" android:layout_width="fill_parent" android:layout_marginBottom="8.0dip" android:text="@string/guild_template_modal_title" style="@style/UiKit.TextView.Bold" />
<TextView android:textSize="@dimen/uikit_textsize_xlarge" android:textColor="?colorHeaderSecondary" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/guild_template_name" android:layout_width="wrap_content" android:text="@string/sample_server_name" android:drawablePadding="8.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip" app:drawableStartCompat="@drawable/ic_template_32dp" style="@style/UiKit.TextView.Large.SingleLine" />
<include android:layout_gravity="center" android:id="@id/guild_create_icon_uploader" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="24.0dip" layout="@layout/layout_icon_uploader" />
<LinearLayout android:padding="16.0dip" style="@style/UiKit.Copy">
<TextView android:textSize="12.0sp" android:paddingLeft="0.0dip" android:paddingRight="0.0dip" android:layout_marginBottom="8.0dip" android:text="@string/form_label_server_name" android:textAllCaps="true" android:fontFamily="@font/whitney_bold" style="@style/UiKit.Form.Label" />
<com.google.android.material.textfield.TextInputLayout android:id="@id/guild_create_name" android:hint="@string/form_placeholder_server_name" style="@style/UiKit.TextInputLayout">
<com.google.android.material.textfield.TextInputEditText android:layout_marginBottom="8.0dip" style="@style/UiKit.TextInputLayout.EditText.SingleLine" />
</com.google.android.material.textfield.TextInputLayout>
<com.discord.utilities.view.text.LinkifiedTextView android:layout_gravity="start" android:id="@id/guild_create_guidelines" android:layout_marginLeft="0.0dip" android:layout_marginRight="0.0dip" android:layout_marginBottom="8.0dip" style="@style/UiKit.TextView.Subtext" />
<com.discord.views.LoadingButton android:id="@id/guild_create_button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip" app:lb_background_color="@color/uikit_btn_bg_color_selector_green" app:lb_progress_color="@color/white" app:lb_text="@string/create" app:lb_text_color="@drawable/button_text_color_primary_100" />
<TextView android:textSize="12.0sp" android:textColor="?colorHeaderSecondary" android:id="@id/guild_create_protip" style="@style/UiKit.TextView" />
</LinearLayout>
<LinearLayout android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
<View android:background="?colorBackgroundModifierAccent" android:layout_marginTop="16.0dip" android:layout_marginBottom="@dimen/uikit_textsize_xxlarge" style="@style/UiKit.Divider" />
<TextView android:text="@string/channels" style="@style/UiKit.TextView.H1.Bold" />
<TextView android:textColor="?colorTextNormal" android:text="@string/guild_template_modal_channels_descriptions" style="@style/UiKit.TextView.Subtext" />
<LinearLayout android:background="@drawable/drawable_rect_rounded_white_corner_radius_8dp" android:paddingBottom="8.0dip" android:layout_marginTop="8.0dip" android:paddingStart="8.0dip" android:paddingEnd="8.0dip" android:backgroundTint="?colorBackgroundSecondary" style="@style/UiKit.ViewGroup.LinearLayout">
<com.discord.widgets.guilds.create.GuildTemplateChannelsView android:id="@id/guild_template_preview_channels" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="8.0dip" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@id/guild_template_preview_roles_layout" android:layout_marginTop="16.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:text="@string/guild_template_modal_roles_header" style="@style/UiKit.TextView.H1.Bold" />
<TextView android:textColor="?colorTextNormal" android:text="@string/guild_template_modal_roles_description" style="@style/UiKit.TextView.Subtext" />
<LinearLayout android:background="@drawable/drawable_rect_rounded_white_corner_radius_8dp" android:paddingBottom="8.0dip" android:layout_marginTop="8.0dip" android:paddingStart="8.0dip" android:paddingEnd="8.0dip" android:backgroundTint="?colorBackgroundSecondary" style="@style/UiKit.ViewGroup.LinearLayout">
<com.discord.widgets.roles.RolesListView android:id="@id/guild_template_preview_roles" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="8.0dip" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</com.discord.app.AppViewFlipper>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>