habitica-android/Habitica/res/layout/fragment_bottomsheet_subscription.xml

223 lines
10 KiB
XML
Raw Normal View History

2023-09-04 19:47:05 +00:00
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
2023-09-04 19:47:05 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2023-12-21 11:02:41 +00:00
xmlns:tools="http://schemas.android.com/tools"
app:cardCornerRadius="28dp"
android:layout_height="match_parent"
app:cardBackgroundColor="@color/window_background">
2023-09-04 19:47:05 +00:00
<androidx.core.widget.NestedScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbarSize="3dp"
android:scrollbarThumbVertical="@color/scrollbarThumb"
android:scrollbars="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="22dp"
android:layout_height="3dp"
android:layout_gravity="center_horizontal"
android:layout_margin="@dimen/spacing_large"
2023-10-25 19:48:29 +00:00
android:src="@color/offset_background"
android:importantForAccessibility="no" />
2023-09-04 19:47:05 +00:00
<com.google.android.material.card.MaterialCardView
android:id="@+id/subscriber_benefit_banner"
android:layout_width="match_parent"
android:layout_height="73dp"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large"
2023-09-12 15:19:16 +00:00
android:layout_marginBottom="@dimen/spacing_medium"
app:cardBackgroundColor="@color/teal_1"
2023-09-04 19:47:05 +00:00
app:cardCornerRadius="24dp"
app:strokeWidth="0dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="true"
android:clipToPadding="true">
<ImageView
android:id="@+id/banner_left_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="false"
android:scaleType="centerCrop"
2023-10-25 19:48:29 +00:00
android:src="@drawable/subscription_banner_image_left"
android:importantForAccessibility="no" />
2023-09-04 19:47:05 +00:00
<ImageView
android:id="@+id/banner_right_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:scaleType="centerCrop"
2023-10-25 19:48:29 +00:00
android:src="@drawable/subscription_banner_image_right"
android:importantForAccessibility="no" />
2023-09-04 19:47:05 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toStartOf="@id/banner_right_image"
android:layout_toEndOf="@id/banner_left_image"
android:gravity="center"
android:orientation="vertical">
<TextView
style="@style/Title1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-medium"
android:text="@string/buy_gems_with_gold"
android:textColor="@color/white" />
2023-09-04 19:47:05 +00:00
<TextView
style="@style/Caption2.Regular"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-medium"
2023-10-25 19:48:29 +00:00
android:text="@string/subscriber_benefit"
android:textAllCaps="true"
android:textColor="@color/white" />
2023-09-04 19:47:05 +00:00
</LinearLayout>
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>
2023-09-04 19:47:05 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="100dp"
2023-09-04 19:47:05 +00:00
android:orientation="vertical"
2023-09-12 15:19:16 +00:00
android:paddingHorizontal="20dp">
2023-09-04 19:47:05 +00:00
<com.habitrpg.android.habitica.ui.views.DayNightTextView
android:id="@+id/subscribe_benefits"
style="@style/SubHeader1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/spacing_small"
2023-09-04 19:47:05 +00:00
android:gravity="center"
android:lineSpacingExtra="4dp"
android:text="@string/subscribe_prompt_2"
android:textColor="@color/gray700_gray10"
/>
2023-09-04 19:47:05 +00:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
2023-10-25 19:48:29 +00:00
android:src="@drawable/separator_fancy"
android:importantForAccessibility="no" />
2023-09-04 19:47:05 +00:00
2023-09-14 09:19:19 +00:00
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriberBenefitView
android:id="@+id/subscriber_benefits"
2023-09-04 19:47:05 +00:00
android:layout_width="match_parent"
2023-09-14 09:19:19 +00:00
android:layout_height="wrap_content" />
2023-09-04 19:47:05 +00:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="20dp"
android:layout_marginBottom="12dp"
2023-10-25 19:48:29 +00:00
android:src="@drawable/separator_fancy"
android:importantForAccessibility="no" />
2023-09-04 19:47:05 +00:00
<ProgressBar
android:id="@+id/loadingIndicator"
style="?android:attr/progressBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:id="@+id/subscriptionOptions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
android:id="@+id/subscription1month"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2024-08-16 12:13:44 +00:00
app:gemCapText="25"
2023-09-04 19:47:05 +00:00
app:recurringText="@string/month" />
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
2023-09-14 09:19:19 +00:00
android:id="@+id/subscription3month"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2024-08-16 12:13:44 +00:00
app:gemCapText="25"
2023-09-14 09:19:19 +00:00
app:recurringText="@string/three_months" />
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
2023-09-04 19:47:05 +00:00
android:id="@+id/subscription12month"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2024-08-16 12:13:44 +00:00
app:flagText="@string/popular"
app:gemCapText="50"
2023-09-04 19:47:05 +00:00
app:recurringText="@string/twelve_months" />
<Button
android:id="@+id/subscribeButton"
style="@style/HabiticaButton.Purple.Small"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/subscribe"
android:textAllCaps="false" />
2023-12-21 11:02:41 +00:00
<TextView
android:id="@+id/subscription_disclaimer_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/text_quad"
android:textSize="14sp"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large"
tools:text="This will contain text explaining subscriptions."
android:layout_marginTop="8dp"
android:layout_marginBottom="24dp"/>
2023-09-04 19:47:05 +00:00
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large"
android:gravity="center_horizontal"
android:text="@string/subscribe_title"
android:textColor="@color/text_quad"
android:textSize="12sp" />
2023-09-04 19:47:05 +00:00
<Button
android:id="@+id/see_more_options"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/transparent"
android:text="@string/see_more_subscription_options"
android:textAllCaps="false"
android:textColor="@color/text_brand_neon" />
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</com.google.android.material.card.MaterialCardView>