apkfuckery/com.discord/res/layout-v21/widget_settings_boost.xml
2019-07-24 13:27:29 +02:00

38 lines
No EOL
5.3 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/settings_boost_flipper" android:layout_width="fill_parent" android:layout_height="fill_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior">
<ProgressBar android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
<ImageView android:layout_marginBottom="@dimen/uikit_spacing_medium" android:src="@drawable/img_poop_dark" android:importantForAccessibility="no" style="@style/UiKit.ImageView" />
<Button android:id="@id/settings_boost_retry" android:layout_width="wrap_content" android:text="@string/retry" style="@style/UiKit.Button.Grey" />
</LinearLayout>
<ScrollView style="@style/UiKit.ViewGroup.ScrollView">
<LinearLayout android:padding="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
<com.discord.utilities.view.text.LinkifiedTextView android:textColor="?white" android:id="@id/settings_boost_no_sub_banner" android:background="?primary_630" android:padding="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_xxlarge" android:drawableLeft="@drawable/ic_boosted_badge_24dp" android:drawablePadding="@dimen/uikit_spacing_medium" android:lineSpacingMultiplier="1.0" android:drawableStart="@drawable/ic_boosted_badge_24dp" style="@style/UiKit.TextView" />
<FrameLayout style="@style/UiKit.ViewGroup">
<androidx.cardview.widget.CardView android:layout_marginTop="20.0dip" app:cardBackgroundColor="?primary_630" app:cardCornerRadius="4.0dip" style="@style/UiKit.ViewGroup">
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
<ImageView android:id="@id/settings_boost_no_sub_logo" android:background="@drawable/drawable_bg_boost_gradient_top_corners" android:padding="@dimen/uikit_spacing_large" android:src="@drawable/img_logo_discord_nitro" android:scaleType="fitStart" android:importantForAccessibility="no" style="@style/UiKit.ViewGroup" />
<TextView android:id="@id/settings_boost_no_sub_learn_more_text" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/premium_guild_features_learn_more_text" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView" />
<Button android:id="@id/settings_boost_no_sub_learn_more" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" android:text="@string/premium_guild_features_learn_more_button" style="@style/UiKit.Button.Grey" />
</LinearLayout>
</androidx.cardview.widget.CardView>
<ImageView android:layout_gravity="end" android:layout_marginRight="@dimen/uikit_spacing_xlarge" android:src="@drawable/img_wumpus_jetpack" android:scaleX="-1.0" android:importantForAccessibility="no" android:layout_marginEnd="@dimen/uikit_spacing_xlarge" android:elevation="6.0dip" android:outlineProvider="none" style="@style/UiKit.ImageView" />
</FrameLayout>
<TextView android:textColor="?white" android:layout_marginTop="@dimen/uikit_spacing_xxlarge" android:text="@string/premium_guild_features_title" style="@style/UiKit.TextView.H1" />
<com.discord.app.AppTextView android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/premium_guild_features_blurb" app:tv_markdown_enabled="true" style="@style/UiKit.TextView" />
<include layout="@layout/view_boost_user_settings_perks" />
<TextView android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/premium_guild_features_more" style="@style/UiKit.TextView" />
</LinearLayout>
</ScrollView>
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:text="@string/premium_guild_subscription_title" style="@style/UiKit.Settings.Item.Header" />
<TextView android:id="@id/settings_boost_subtext" style="@style/UiKit.Settings.Item.SubText" />
<androidx.recyclerview.widget.RecyclerView android:id="@id/settings_boost_recycler" android:layout_margin="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RecyclerView" />
</LinearLayout>
</com.discord.app.AppViewFlipper>
</androidx.coordinatorlayout.widget.CoordinatorLayout>