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"
|
2018-12-04 13:28:03 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:id="@+id/subscriptionDetails"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
tools:background="@color/white">
|
2019-11-19 17:07:45 +00:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/heart_icon"
|
|
|
|
|
android:layout_width="20dp"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_gravity="center_horizontal"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/thanks_for_subscribing"
|
|
|
|
|
style="@style/Body2"
|
|
|
|
|
android:textColor="@color/gray_300"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
/>
|
2017-01-12 10:42:36 +00:00
|
|
|
<LinearLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/subscriptionBox">
|
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">
|
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"
|
|
|
|
|
android:text="@string/subscription"
|
2019-11-19 17:07:45 +00:00
|
|
|
style="@style/subscriptionBoxText.Title"/>
|
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"
|
|
|
|
|
android:id="@+id/subscriptionDurationTextView"
|
|
|
|
|
tools:text="Recurring every 3 months"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle" />
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/active"
|
|
|
|
|
style="@style/Pill.Selected.Green"
|
|
|
|
|
android:id="@+id/subscriptionStatusActive"
|
|
|
|
|
android:layout_gravity="center_vertical"/>
|
2019-11-19 17:07:45 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/not_recurring"
|
|
|
|
|
style="@style/Pill.Selected.Yellow"
|
|
|
|
|
android:id="@+id/subscriptionStatusNotRecurring"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:visibility="gone"/>
|
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"
|
|
|
|
|
android:text="@string/inactive"
|
|
|
|
|
style="@style/Pill.Selected.Red"
|
|
|
|
|
android:id="@+id/subscriptionStatusInactive"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:visibility="gone"/>
|
2019-11-19 17:07:45 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/cancelled"
|
|
|
|
|
style="@style/Pill.Selected.Red"
|
|
|
|
|
android:id="@+id/subscriptionStatusCancelled"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:visibility="gone"/>
|
2019-11-26 09:58:14 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/group_plan"
|
|
|
|
|
style="@style/Pill.Selected"
|
|
|
|
|
android:id="@+id/subscription_status_group_plan"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:visibility="gone"/>
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/payment_processor_wrapper"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/subscriptionBox">
|
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">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/payment_method"
|
|
|
|
|
style="@style/subscriptionBoxText.Title" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:id="@+id/subscription_payment_method_textview"
|
|
|
|
|
tools:text="Recurring every 3 months"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/paymentProcessorImageView"
|
|
|
|
|
android:layout_gravity="center_vertical"/>
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/subscriptionBox"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<TextView
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:text="@string/current_bonuses"
|
|
|
|
|
style="@style/subscriptionBoxText.Title"
|
|
|
|
|
android:layout_marginBottom="4dp"/>
|
2019-11-26 09:58:14 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/subscription_credit_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="6dp">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscription_credit"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/Pill"
|
|
|
|
|
android:id="@+id/subscription_credit_text_view"
|
|
|
|
|
tools:text="32 Months" />
|
|
|
|
|
</LinearLayout>
|
2017-01-12 10:42:36 +00:00
|
|
|
<LinearLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="6dp">
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/months_subscribed"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle"/>
|
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"
|
|
|
|
|
style="@style/Pill"
|
|
|
|
|
android:id="@+id/monthsSubscribedTextView"
|
|
|
|
|
tools:text="32 Months" />
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="6dp">
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/monthly_gem_cap"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle" />
|
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"
|
|
|
|
|
style="@style/Pill"
|
|
|
|
|
android:id="@+id/gemCapTextView"
|
|
|
|
|
tools:text="50 Gems" />
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/current_hourclasses"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle" />
|
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"
|
|
|
|
|
style="@style/Pill"
|
|
|
|
|
android:id="@+id/currentHourglassesTextView"
|
|
|
|
|
tools:text="4" />
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/change_subscription_wrapper"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/subscriptionBox"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<TextView
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/change_subscription_title"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:text="@string/cancel_subscription"
|
|
|
|
|
style="@style/subscriptionBoxText.Title" />
|
2017-01-12 10:42:36 +00:00
|
|
|
<TextView
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/change_subscription_description"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/subscriptionBoxText.Subtitle"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/cancel_subscription_notgoogle_description"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"/>
|
2017-01-12 10:42:36 +00:00
|
|
|
<Button
|
2019-11-19 17:07:45 +00:00
|
|
|
android:id="@+id/change_subscription_button"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:text="@string/visit_website"
|
|
|
|
|
android:layout_gravity="center"
|
2019-11-26 09:58:14 +00:00
|
|
|
style="@style/HabiticaButton.Purple"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_medium"/>
|
2017-01-12 10:42:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|