2017-01-12 10:42:36 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-09-06 11:38:06 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-12-04 13:28:03 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:id="@+id/subscriptionDetails"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:orientation="vertical"
|
2020-09-04 16:17:34 +00:00
|
|
|
tools:background="@color/content_background">
|
2022-09-06 11:38:06 +00:00
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
|
android:id="@+id/subscription_credit_card"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="75dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
app:cardCornerRadius="8dp"
|
|
|
|
|
app:strokeColor="@color/green_50"
|
|
|
|
|
app:strokeWidth="1dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/subscription_credit_text_view"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:text="@string/subscription_credit_canceling"
|
|
|
|
|
android:textColor="@color/green_50" />
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<LinearLayout
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBox"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<LinearLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="vertical">
|
2022-09-06 11:38:06 +00:00
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBoxText.Title"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:text="@string/subscription" />
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/subscriptionDurationTextView"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
tools:text="Recurring every 3 months" />
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/subscriptionStatusActive"
|
|
|
|
|
style="@style/Pill.Selected.Green"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:text="@string/active" />
|
|
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/subscriptionStatusNotRecurring"
|
|
|
|
|
style="@style/Pill.Selected.Yellow"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:text="@string/not_recurring"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/subscriptionStatusInactive"
|
|
|
|
|
style="@style/Pill.Selected.Red"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:text="@string/inactive"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/subscriptionStatusCancelled"
|
|
|
|
|
style="@style/Pill.Selected.Red"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:text="@string/cancelled"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2019-11-26 09:58:14 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/subscription_status_group_plan"
|
|
|
|
|
style="@style/Pill.Selected"
|
2019-11-26 09:58:14 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:text="@string/group_plan"
|
|
|
|
|
android:visibility="gone" />
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
2022-09-06 11:38:06 +00:00
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/payment_processor_wrapper"
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBox"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<LinearLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="vertical">
|
2022-09-06 11:38:06 +00:00
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBoxText.Title"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:text="@string/payment_method" />
|
|
|
|
|
|
2019-11-19 17:07:45 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/subscription_payment_method_textview"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
tools:text="Recurring every 3 months" />
|
2019-11-19 17:07:45 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/paymentProcessorImageView"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_gravity="center_vertical" />
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2022-09-06 11:38:06 +00:00
|
|
|
<RelativeLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
2022-09-06 11:38:06 +00:00
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/divider"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
|
android:visibility="invisible" />
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/months_subscribed_layout"
|
|
|
|
|
style="@style/subscriptionBox"
|
2019-11-26 09:58:14 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
|
android:layout_toStartOf="@id/divider">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/months_divider"
|
2019-11-26 09:58:14 +00:00
|
|
|
android:layout_width="0dp"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_centerHorizontal="true" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/calendar_icon"
|
|
|
|
|
android:layout_width="25dp"
|
|
|
|
|
android:layout_height="25dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_toStartOf="@id/months_divider"
|
|
|
|
|
android:src="@drawable/calendar_ic" />
|
|
|
|
|
|
2019-11-26 09:58:14 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBoxCompactText"
|
2019-11-26 09:58:14 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_below="@id/calendar_icon"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
|
android:text="@string/months_subscribed" />
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/monthsSubscribedTextView"
|
|
|
|
|
style="@style/subscriptionBoxCompactNumber"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_toEndOf="@id/calendar_icon"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
tools:text="2" />
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
style="@style/subscriptionBox"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
|
android:layout_toEndOf="@id/divider">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/gem_divider"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="0dp"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_centerInParent="true" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/gem_icon"
|
|
|
|
|
android:layout_width="25dp"
|
|
|
|
|
android:layout_height="25dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_toStartOf="@id/gem_divider"
|
|
|
|
|
android:src="@drawable/gem_ic" />
|
|
|
|
|
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBoxCompactText"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_below="@id/gem_icon"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:text="@string/monthly_gem_cap" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:id="@+id/gemCapTextView"
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBoxCompactNumber"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_toEndOf="@id/gem_icon"
|
|
|
|
|
tools:text="50" />
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
style="@style/subscriptionBox"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@id/months_subscribed_layout">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="60dp"
|
|
|
|
|
android:layout_height="60dp"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:src="@drawable/sub_benefits_hourglasses" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="60dp"
|
|
|
|
|
android:layout_height="60dp"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
android:src="@drawable/sub_benefits_hourglasses" />
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2022-09-06 11:38:06 +00:00
|
|
|
android:id="@+id/next_hourglass_textview"
|
|
|
|
|
style="@style/subscriptionBoxCompactTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_centerInParent="true"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
tools:text="4" />
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_below="@id/next_hourglass_textview"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
|
android:text="@string/next_hourglass"
|
2022-09-06 11:40:01 +00:00
|
|
|
android:textColor="@color/text_primary" />
|
2022-09-06 11:38:06 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:fontFamily="sans-serif"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:paddingStart="50dp"
|
|
|
|
|
android:paddingEnd="50dp"
|
|
|
|
|
android:text="@string/subscribers_mythic_hourglasses" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/heart_icon"
|
|
|
|
|
android:layout_width="20dp"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="12dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
|
android:text="@string/thanks_for_supporting"
|
|
|
|
|
android:textColor="@color/text_quad" />
|
2017-01-12 10:42:36 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/change_subscription_wrapper"
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBox"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
2022-09-06 11:38:06 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/change_subscription_title"
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBoxText.Title"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:text="@string/cancel_subscription" />
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/change_subscription_description"
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/subscriptionBoxText.Subtitle"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:text="@string/cancel_subscription_notgoogle_description" />
|
|
|
|
|
|
2017-01-12 10:42:36 +00:00
|
|
|
<Button
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/change_subscription_button"
|
2022-09-06 11:38:06 +00:00
|
|
|
style="@style/HabiticaButton.Purple"
|
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"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_gravity="center"
|
2022-09-06 11:38:06 +00:00
|
|
|
android:layout_marginTop="@dimen/spacing_medium"
|
|
|
|
|
android:text="@string/visit_website" />
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|