2017-01-10 17:05:03 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-08-28 09:36:13 +00:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-12-04 13:28:03 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-01-10 13:38:58 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/refresh_layout"
|
2020-01-10 13:38:58 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
2023-08-28 09:36:13 +00:00
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:id="@+id/scroll_view"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:scrollbarSize="3dp"
|
|
|
|
|
android:scrollbarThumbVertical="@color/scrollbarThumb"
|
|
|
|
|
android:scrollbars="vertical">
|
2018-12-04 13:28:03 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:orientation="vertical">
|
2018-12-04 13:28:03 +00:00
|
|
|
|
2023-08-28 09:36:13 +00:00
|
|
|
<androidx.compose.ui.platform.ComposeView
|
|
|
|
|
android:id="@+id/promo_compose_view"
|
|
|
|
|
android:layout_width="match_parent"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:visibility="gone" />
|
2019-11-19 17:07:45 +00:00
|
|
|
|
2023-08-28 09:36:13 +00:00
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/promo_banner"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_height="80dp"
|
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:background="@drawable/g1g1_box"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:clipChildren="true"
|
|
|
|
|
android:clipToOutline="true"
|
|
|
|
|
android:clipToPadding="true"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
tools:visibility="visible">
|
2019-11-19 17:07:45 +00:00
|
|
|
|
2023-08-28 09:36:13 +00:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/promo_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="center" />
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<ImageView
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/promo_banner_right_image"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:scaleType="center" />
|
|
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<LinearLayout
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_centerInParent="true"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/promo_banner_title_image"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_marginBottom="6dp" />
|
|
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<TextView
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/promo_banner_title_text"
|
|
|
|
|
style="@style/SubHeader1"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_marginStart="84dp"
|
|
|
|
|
android:layout_marginEnd="84dp"
|
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/promo_banner_duration_view"
|
|
|
|
|
style="@style/Overline"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content" />
|
2019-11-19 17:07:45 +00:00
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
|
android:layout_marginStart="60dp"
|
|
|
|
|
android:layout_marginEnd="60dp"
|
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
|
android:fontFamily="@string/font_family_medium"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<LinearLayout
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="20dp">
|
|
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<ImageView
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/header_image_view"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginBottom="20dp"
|
|
|
|
|
android:src="@drawable/subscribe_header" />
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionDetailsView
|
|
|
|
|
android:id="@+id/subscriptionDetails"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.DayNightTextView
|
|
|
|
|
android:id="@+id/subscribeBenefitsTitle"
|
|
|
|
|
style="@style/SubHeader1"
|
|
|
|
|
android:layout_width="250dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:lineSpacingExtra="4dp"
|
|
|
|
|
android:text="@string/subscribe_prompt"
|
|
|
|
|
app:dayTextColor="@color/text_brand"
|
|
|
|
|
app:nightTextColor="@color/gray_400" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:layout_marginBottom="20dp"
|
|
|
|
|
android:src="@drawable/separator_fancy" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="68dp"
|
|
|
|
|
android:layout_height="68dp"
|
|
|
|
|
android:scaleType="center"
|
|
|
|
|
android:src="@drawable/sub_benefits_gems" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem1"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Caption2.Regular"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem1_description"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
</LinearLayout>
|
2019-11-19 17:07:45 +00:00
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<LinearLayout
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/benefit_armoire_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.common.habitica.views.PixelArtView
|
|
|
|
|
android:layout_width="68dp"
|
|
|
|
|
android:layout_height="68dp"
|
|
|
|
|
android:scaleType="center"
|
|
|
|
|
android:src="@drawable/sub_benefits_armoire" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitemArmoire"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Caption2.Regular"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitemArmoire_description"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
</LinearLayout>
|
2019-11-19 17:07:45 +00:00
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<LinearLayout
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="68dp"
|
|
|
|
|
android:layout_height="68dp"
|
|
|
|
|
android:scaleType="center"
|
|
|
|
|
android:src="@drawable/sub_benefits_hourglasses" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem2"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Caption2.Regular"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem2_description"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
</LinearLayout>
|
2019-11-19 17:07:45 +00:00
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
|
2023-08-22 14:41:36 +00:00
|
|
|
<LinearLayout
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-08-22 14:41:36 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.common.habitica.views.PixelArtView
|
|
|
|
|
android:id="@+id/sub_benefits_mystery_item_icon"
|
|
|
|
|
android:layout_width="68dp"
|
|
|
|
|
android:layout_height="68dp"
|
|
|
|
|
android:scaleType="center" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2023-08-22 14:41:36 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem3"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/sub_benefits_mystery_item_text"
|
|
|
|
|
style="@style/Caption2.Regular"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem3_description"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="68dp"
|
|
|
|
|
android:layout_height="68dp"
|
|
|
|
|
android:scaleType="center"
|
|
|
|
|
android:src="@drawable/sub_benefits_pet" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2023-08-22 14:41:36 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem4"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Caption2.Regular"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem4_description"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
</LinearLayout>
|
2023-08-22 14:41:36 +00:00
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<LinearLayout
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/benefit_faint_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="68dp"
|
|
|
|
|
android:layout_height="68dp"
|
|
|
|
|
android:scaleType="center"
|
|
|
|
|
android:src="@drawable/sub_benefits_faint" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitemFaint"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/Caption2.Regular"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitemFaint_description"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="68dp"
|
|
|
|
|
android:layout_height="68dp"
|
|
|
|
|
android:scaleType="center"
|
|
|
|
|
android:src="@drawable/sub_benefits_drops" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:orientation="vertical">
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2023-08-28 09:36:13 +00:00
|
|
|
<TextView
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem5"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
2019-11-19 17:07:45 +00:00
|
|
|
|
2023-08-28 09:36:13 +00:00
|
|
|
<TextView
|
|
|
|
|
style="@style/Caption2.Regular"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_listitem5_description"
|
|
|
|
|
android:textColor="@color/text_primary" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
|
|
|
|
|
2023-08-28 09:36:13 +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"
|
|
|
|
|
android:src="@drawable/separator_fancy" />
|
2017-04-26 11:30:41 +00:00
|
|
|
|
2023-08-28 09:36:13 +00:00
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/loadingIndicator"
|
|
|
|
|
style="?android:attr/progressBarStyle"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
2017-04-26 11:30:41 +00:00
|
|
|
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<TextView
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:paddingTop="50dp"
|
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
|
android:text="@string/no_billing_subscriptions"
|
|
|
|
|
android:visibility="gone" />
|
2019-11-19 17:07:45 +00:00
|
|
|
|
2023-08-28 09:36:13 +00:00
|
|
|
<Button
|
|
|
|
|
style="@style/HabiticaButton.Purple"
|
|
|
|
|
android:layout_width="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginBottom="50dp"
|
|
|
|
|
android:text="@string/visit_habitica_website"
|
|
|
|
|
android:visibility="gone" />
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2023-08-28 09:36:13 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/subscriptionOptions"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/SubHeader1"
|
|
|
|
|
android:layout_width="250dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginBottom="20dp"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:text="@string/subscribe_options_title"
|
|
|
|
|
android:textColor="@color/text_brand" />
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
|
|
|
|
android:id="@+id/subscription1month"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:gemCapText="@string/subscribe1month_gemcap"
|
|
|
|
|
app:recurringText="@string/month" />
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
|
|
|
|
android:id="@+id/subscription3month"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:gemCapText="@string/subscribe3month_gemcap"
|
|
|
|
|
app:hourGlassCount="1"
|
|
|
|
|
app:recurringText="@string/three_months" />
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
|
|
|
|
android:id="@+id/subscription6month"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:gemCapText="@string/subscribe6month_gemcap"
|
|
|
|
|
app:hourGlassCount="2"
|
|
|
|
|
app:recurringText="@string/six_months" />
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
|
|
|
|
android:id="@+id/subscription12month"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:flagText="@string/save_20"
|
|
|
|
|
app:gemCapText="@string/subscribe12month_gemcap"
|
|
|
|
|
app:hourGlassCount="4"
|
|
|
|
|
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" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
|
android:src="@drawable/gift_sub_gift" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:text="@string/subscribe_gift_description"
|
|
|
|
|
android:textColor="@color/text_quad" />
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<Button
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/gift_subscription_button"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-09-29 10:48:20 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:text="@string/gift_subscription"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:textAllCaps="false"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:textColor="@color/text_brand_neon" />
|
2018-12-04 13:28:03 +00:00
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:background="?attr/colorWindowBackground">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/supportTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:drawablePadding="@dimen/spacing_medium"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:lineSpacingExtra="4dp"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
|
android:paddingBottom="16dp"
|
|
|
|
|
android:text="@string/subscribe_title"
|
|
|
|
|
android:textColor="@color/text_quad"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
</LinearLayout>
|
2018-12-04 13:28:03 +00:00
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|