41 lines
6.9 KiB
XML
41 lines
6.9 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" style="@style/UiKit_ViewGroup_NestedScrollView">
|
||
|
<LinearLayout android:layout_height="wrap_content" style="@style/UiKit_ViewGroup_Page_LinearLayout">
|
||
|
<FrameLayout android:background="?attr/bg_announcements_follow_sheet" android:layout_width="match_parent" android:layout_height="96dp">
|
||
|
<LinearLayout android:gravity="center" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="32dp" style="@style/UiKit_ViewGroup_LinearLayout_Horizontal">
|
||
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/channel_follow_guild_icon" android:layout_width="32dp" android:layout_height="32dp" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" app:roundedCornerRadius="4dp"/>
|
||
|
<androidx.cardview.widget.CardView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:layout_marginEnd="8dp" app:cardBackgroundColor="?attr/colorBackgroundPrimary" app:cardCornerRadius="4dp">
|
||
|
<TextView android:gravity="center_vertical" android:id="@+id/channel_follow_channel_name" android:layout_height="match_parent" android:drawablePadding="8dp" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" app:drawableStartCompat="@drawable/ic_channel_text" app:drawableTint="?attr/colorTextMuted" style="@style/UiKit_TextView_Large_SingleLine"/>
|
||
|
</androidx.cardview.widget.CardView>
|
||
|
</LinearLayout>
|
||
|
</FrameLayout>
|
||
|
<com.discord.app.AppViewFlipper android:id="@+id/follow_sheet_view_flipper" android:layout_width="wrap_content" android:layout_height="wrap_content" android:measureAllChildren="false">
|
||
|
<LinearLayout android:padding="16dp" android:layout_height="wrap_content" style="@style/UiKit_ViewGroup_Page_LinearLayout">
|
||
|
<TextView android:textSize="@dimen/uikit_textsize_xxlarge" android:layout_gravity="center" android:layout_marginTop="16dp" android:text="@string/follow_modal_title" android:textAlignment="center" style="@style/UiKit_TextView_H1_Bold"/>
|
||
|
<TextView android:textSize="@dimen/uikit_textsize_medium" android:layout_gravity="center" android:layout_marginTop="8dp" android:layout_marginBottom="16dp" android:text="@string/follow_modal_body" android:textAlignment="center" style="@style/UiKit_TextView_Subtext"/>
|
||
|
<TextView android:text="@string/form_label_send_to" style="@style/UiKit_TextView_H6"/>
|
||
|
<com.google.android.material.card.MaterialCardView android:id="@+id/channel_follow_select_guild" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:layout_marginBottom="16dp" app:cardBackgroundColor="?attr/colorBackgroundTertiary" app:cardCornerRadius="4dp" app:contentPadding="8dp">
|
||
|
<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/UiKit_ViewGroup_RelativeLayout">
|
||
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?attr/colorInteractiveNormal" android:id="@+id/channel_follow_selected_guild_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/select" android:layout_centerVertical="true" android:layout_toStartOf="@+id/channel_follow_guild_dropdown_icon" android:layout_alignParentStart="true" style="@style/UiKit_TextView_Subtext_SingleLine"/>
|
||
|
<ImageView android:id="@+id/channel_follow_guild_dropdown_icon" android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/ic_arrow_drop_down_white_18dp" android:importantForAccessibility="no" android:layout_alignParentEnd="true"/>
|
||
|
</RelativeLayout>
|
||
|
</com.google.android.material.card.MaterialCardView>
|
||
|
<TextView android:text="@string/form_label_select_channel" style="@style/UiKit_TextView_H6"/>
|
||
|
<com.google.android.material.card.MaterialCardView android:id="@+id/channel_follow_select_channel" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:layout_marginBottom="16dp" app:cardBackgroundColor="?attr/colorBackgroundTertiary" app:cardCornerRadius="4dp" app:contentPadding="8dp">
|
||
|
<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/UiKit_ViewGroup_RelativeLayout">
|
||
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?attr/colorInteractiveNormal" android:id="@+id/channel_follow_selected_channel_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/select" android:layout_centerVertical="true" android:layout_toStartOf="@+id/channel_follow_channel_dropdown_icon" android:layout_alignParentStart="true" style="@style/UiKit_TextView_Subtext_SingleLine"/>
|
||
|
<ImageView android:id="@+id/channel_follow_channel_dropdown_icon" android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/ic_arrow_drop_down_white_18dp" android:importantForAccessibility="no" android:layout_alignParentEnd="true"/>
|
||
|
</RelativeLayout>
|
||
|
</com.google.android.material.card.MaterialCardView>
|
||
|
<TextView android:textSize="12sp" android:id="@+id/channel_follow_error_text" android:visibility="gone" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:textAlignment="viewStart" style="@style/TextAppearance_Error"/>
|
||
|
<TextView android:textSize="@dimen/uikit_textsize_medium" android:layout_marginBottom="16dp" android:text="@string/follow_modal_hint" style="@style/UiKit_TextView_Subtext"/>
|
||
|
<com.google.android.material.button.MaterialButton android:id="@+id/create_channel_follower_button" android:text="@string/follow" style="@style/UiKit_Material_Button"/>
|
||
|
</LinearLayout>
|
||
|
<LinearLayout android:padding="16dp" style="@style/UiKit_ViewGroup_LinearLayout">
|
||
|
<TextView android:textSize="@dimen/uikit_textsize_xxlarge" android:layout_gravity="center" android:layout_marginTop="16dp" android:layout_marginBottom="16dp" android:text="@string/follow_modal_title" android:textAlignment="center" style="@style/UiKit_TextView_H1_Bold"/>
|
||
|
<TextView android:textSize="12sp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:text="@string/follow_modal_hint_no_perms" android:textAlignment="center" style="@style/TextAppearance_Error"/>
|
||
|
</LinearLayout>
|
||
|
</com.discord.app.AppViewFlipper>
|
||
|
</LinearLayout>
|
||
|
</androidx.core.widget.NestedScrollView>
|