apkfuckery/com.discord/res/layout/widget_server_boost_confirm...

41 lines
6.7 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 style="@style/AppTheme.Toolbar" />
</com.google.android.material.appbar.AppBarLayout>
<com.discord.app.AppViewFlipper android:id="@id/boost_confirmation_flipper" android:layout_width="fill_parent" android:layout_height="fill_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" android:layout_above="@id/boost_confirmation_button_container">
<LinearLayout android:gravity="center" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
<ImageView android:src="@drawable/drawable_nitro_server_boost" android:importantForAccessibility="no" style="@style/UiKit.ImageView" />
<TextView android:textSize="20.0sp" android:textColor="?primary_100" android:layout_marginTop="@dimen/uikit_spacing_xxlarge" android:text="@string/premium_guild_subscribe_confirm_header" style="@style/UiKit.TextView" />
<TextView android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/premium_guild_subscribe_confirm_blurb" style="@style/UiKit.TextView" />
<androidx.cardview.widget.CardView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" app:cardBackgroundColor="?primary_800" app:cardCornerRadius="4.0dip">
<androidx.constraintlayout.widget.ConstraintLayout android:padding="@dimen/uikit_spacing_large" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="center_vertical" android:id="@id/boost_confirmation_avatar" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/Avatar.Large" />
<TextView android:textColor="?white" android:ellipsize="end" android:id="@id/boost_confirmation_guild_name" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:maxLines="1" app:layout_constraintLeft_toRightOf="@id/boost_confirmation_avatar" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.TextView.Semibold" />
<androidx.cardview.widget.CardView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_small" app:cardBackgroundColor="?boost_confirmation_card_bg" app:cardCornerRadius="10.0sp" app:layout_constraintLeft_toLeftOf="@id/boost_confirmation_guild_name" app:layout_constraintTop_toBottomOf="@id/boost_confirmation_guild_name">
<TextView android:textColor="?white" android:id="@id/boost_confirmation_level_info" android:layout_marginLeft="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_medium" android:drawablePadding="@dimen/uikit_spacing_small" style="@style/UiKit.TextView" />
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<TextView android:id="@id/boost_confirmation_warning" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/premium_guild_subscribe_confirm_cooldown_warning" style="@style/UiKit.TextView" />
</LinearLayout>
</ScrollView>
<LinearLayout android:id="@id/boost_confirmation_button_container" android:layout_margin="@dimen/uikit_spacing_large" android:layout_alignParentBottom="true" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:textColor="@color/status_red_500" android:id="@id/boost_confirmation_error" android:visibility="invisible" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/premium_guild_subscription_error_mobile" style="@style/UiKit.TextView" />
<Button android:id="@id/boost_confirmation_select" android:text="@string/premium_guild_subscribe_confirm_confirmation" style="@style/UiKit.Button" />
<TextView android:textColor="?white" android:gravity="center" android:id="@id/boost_confirmation_cancel" android:background="?selectableItemBackground" android:padding="@dimen/uikit_spacing_medium" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/cancel" android:textAllCaps="true" style="@style/UiKit.TextView" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center" android:layout_height="fill_parent" android:layout_above="@id/boost_confirmation_close" android:layout_centerInParent="true" style="@style/UiKit.ViewGroup.LinearLayout">
<com.airbnb.lottie.LottieAnimationView android:layout_gravity="center_horizontal" android:id="@id/boost_confirmation_lottie" android:layout_width="300.0dip" android:layout_height="200.0dip" app:lottie_fileName="?anim_boost_confirmation" style="@style/UiKit.LottieAnimationView" />
<TextView android:textSize="20.0sp" android:textColor="?white" android:layout_gravity="center_horizontal" android:layout_marginTop="@dimen/uikit_spacing_xxlarge" android:text="@string/premium_guild_subscribe_success_thanks" style="@style/UiKit.TextView" />
</LinearLayout>
<Button android:id="@id/boost_confirmation_close" android:layout_margin="@dimen/uikit_spacing_large" android:text="@string/close" android:layout_alignParentBottom="true" style="@style/UiKit.Button.Grey" />
</RelativeLayout>
</com.discord.app.AppViewFlipper>
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>