discord-jadx/app/src/main/res/layout/widget_settings_premium.xml

48 lines
7.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" style="@style/res_2131952591_uikit_viewgroup_coordinatorlayout_page">
<com.google.android.material.appbar.AppBarLayout style="@style/res_2131951638_apptheme_appbarlayout_flat">
<androidx.appcompat.widget.Toolbar style="@style/res_2131951666_apptheme_toolbar"/>
</com.google.android.material.appbar.AppBarLayout>
<com.discord.app.AppViewFlipper android:id="@+id/premium_settings_view_flipper" style="@style/res_2131952588_uikit_viewgroup_appviewflipper_incoordinatorlayout">
<ScrollView android:id="@+id/premium_settings_scrollview" android:clipToPadding="false" style="@style/res_2131952608_uikit_viewgroup_scrollview">
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="top" android:background="@drawable/img_nitro_pattern" android:layout_width="match_parent" android:layout_height="270sp" android:importantForAccessibility="no" app:layout_constraintTop_toTopOf="0"/>
<ImageView android:layout_gravity="top" android:background="@drawable/img_nitro_classic_pattern" android:layout_width="match_parent" android:layout_height="270sp" android:importantForAccessibility="no" app:layout_constraintBottom_toBottomOf="0"/>
<LinearLayout android:layout_width="0dp" android:layout_marginTop="24dp" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="0" app:layout_constraintWidth_max="500dp" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<LinearLayout android:id="@+id/premium_settings_subscription_container" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<androidx.cardview.widget.CardView android:id="@+id/premium_settings_status_notice_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="8dp" android:layout_marginRight="8dp" android:layout_marginBottom="16dp" app:cardBackgroundColor="?attr/colorBackgroundSecondary" app:cardCornerRadius="4dp">
<LinearLayout style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<com.google.android.flexbox.FlexboxLayout android:gravity="center_vertical" app:flexWrap="0" style="@style/res_2131952594_uikit_viewgroup_linearlayout_horizontal">
<ImageView android:layout_width="48dp" android:layout_height="28dp" android:layout_marginTop="8dp" android:src="@drawable/ic_info_24dp" android:importantForAccessibility="no" android:layout_marginStart="8dp"/>
<TextView android:id="@+id/premium_settings_status_notice_tv" android:paddingTop="8dp" android:paddingBottom="8dp" android:layout_width="match_parent" android:paddingStart="4dp" android:paddingEnd="4dp" style="@style/res_2131952561_uikit_textview"/>
</com.google.android.flexbox.FlexboxLayout>
<Button android:textSize="12sp" android:textColor="@color/white" android:id="@+id/premium_settings_status_notice_button" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="4dp" android:textAllCaps="false" android:layout_marginStart="4dp" android:layout_marginEnd="4dp"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<TextView android:id="@+id/premium_settings_subscriptions_header" android:text="@string/premium_settings_subscriptions_mobile_header" style="@style/res_2131952494_uikit_settings_item_header"/>
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/white" android:id="@+id/premium_settings_grandfathered" android:background="@drawable/drawable_bg_nitro_gradient" android:padding="8dp" android:visibility="gone" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:drawablePadding="8dp" app:drawableStartCompat="@drawable/ic_nitro_badge_white" style="@style/res_2131952561_uikit_textview"/>
<com.discord.views.ActiveSubscriptionView android:id="@+id/premium_settings_active_subscription" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp"/>
<com.discord.views.ActiveSubscriptionView android:id="@+id/premium_settings_active_guild_subscription" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp"/>
<TextView android:textColor="?attr/colorHeaderSecondary" android:layout_marginLeft="16dp" android:layout_marginTop="8dp" android:layout_marginRight="16dp" android:text="@string/billing_payment_premium_description" style="@style/res_2131952561_uikit_textview"/>
</LinearLayout>
<include android:id="@+id/payment" layout="@layout/layout_premium_settings_payment"/>
<LinearLayout android:id="@+id/premium_settings_credit_container" android:layout_marginTop="8dp" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:id="@+id/premium_settings_credit_header" android:text="@string/billing_subscription_credit" style="@style/res_2131952494_uikit_settings_item_header"/>
<include android:id="@+id/account_credits" layout="@layout/layout_account_credits_list"/>
<TextView android:textColor="?attr/colorHeaderSecondary" android:layout_marginLeft="16dp" android:layout_marginTop="8dp" android:layout_marginRight="16dp" android:text="@string/billing_account_credit_description" style="@style/res_2131952561_uikit_textview"/>
</LinearLayout>
<include android:id="@+id/premium_tier_2" layout="@layout/view_premium_settings_tier_2"/>
<include android:id="@+id/premium_perks" layout="@layout/view_premium_settings_perks"/>
<include android:id="@+id/premium_tier_1" layout="@layout/view_premium_settings_tier_1"/>
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorTextMuted" android:id="@+id/premium_settings_legalese" android:visibility="gone" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginTop="8dp" android:layout_marginRight="16dp" android:layout_marginBottom="16dp" style="@style/res_2131952561_uikit_textview"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
<ProgressBar android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
<LinearLayout android:gravity="center" android:layout_width="match_parent" android:layout_height="match_parent" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<ImageView android:layout_marginBottom="8dp" android:src="@drawable/img_poop_dark" android:importantForAccessibility="no" style="@style/res_2131952448_uikit_imageview"/>
<com.google.android.material.button.MaterialButton android:id="@+id/premium_settings_retry" android:layout_width="wrap_content" android:text="@string/retry" style="@style/res_2131952465_uikit_material_button_secondary"/>
</LinearLayout>
</com.discord.app.AppViewFlipper>
</androidx.coordinatorlayout.widget.CoordinatorLayout>