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

40 lines
5.6 KiB
XML
Raw Normal View History

2019-07-24 11:27:29 +00:00
<?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">
2019-07-31 00:08:31 +00:00
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_xlarge" android:paddingTop="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_xlarge" android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
<androidx.cardview.widget.CardView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_xxlarge" app:cardBackgroundColor="?primary_630" app:cardCornerRadius="4.0dip">
2019-08-22 18:54:10 +00:00
<com.discord.utilities.view.text.LinkifiedTextView android:textColor="?primary_000" android:id="@id/settings_boost_no_sub_banner" android:padding="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" 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" />
2019-07-31 00:08:31 +00:00
</androidx.cardview.widget.CardView>
2019-07-24 11:27:29 +00:00
<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" style="@style/UiKit.ImageView" />
</FrameLayout>
2019-08-22 18:54:10 +00:00
<TextView android:textColor="?primary_000" android:layout_marginTop="@dimen/uikit_spacing_xxlarge" android:text="@string/premium_guild_features_title" style="@style/UiKit.TextView.H1" />
2019-07-31 00:08:31 +00:00
<com.discord.app.AppTextView android:textSize="@dimen/uikit_textsize_large" 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" />
2019-07-24 11:27:29 +00:00
<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>