2017-01-10 17:05:03 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-11-06 15:11:02 +00:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2018-12-04 13:28:03 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:scrollbarSize="3dp"
|
|
|
|
|
android:scrollbarThumbVertical="@color/scrollbarThumb"
|
|
|
|
|
android:scrollbars="vertical"
|
|
|
|
|
android:background="@color/white">
|
|
|
|
|
<LinearLayout
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/gift_subscription_container"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-01-10 13:04:49 +00:00
|
|
|
android:background="@color/teal_50">
|
2018-12-04 13:28:03 +00:00
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/presents1"
|
|
|
|
|
android:layout_alignParentTop="true"
|
2019-02-28 13:21:14 +00:00
|
|
|
android:layout_alignParentStart="true"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_marginTop="18dp"/>
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/presents2"
|
|
|
|
|
android:layout_alignParentTop="true"
|
2019-02-28 13:21:14 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_marginTop="18dp"/>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingTop="21dp"
|
|
|
|
|
android:paddingBottom="21dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:gravity="center_horizontal"
|
2019-02-28 13:21:14 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:layout_alignParentBottom="true">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/gift_one_get_one_description"
|
|
|
|
|
android:layout_marginLeft="60dp"
|
|
|
|
|
android:layout_marginRight="60dp"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:fontFamily="@string/font_family_medium"
|
|
|
|
|
android:layout_marginBottom="12dp"/>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/gift_subscription_promo_button"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:text="@string/gift_subscription"
|
|
|
|
|
android:background="@drawable/white_rounded_border"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textAllCaps="false"
|
|
|
|
|
android:paddingLeft="12dp"
|
|
|
|
|
android:paddingRight="12dp"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:orientation="vertical" android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:padding="20dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
2017-01-12 10:42:36 +00:00
|
|
|
android:id="@+id/subscribeBenefitsTitle"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/subscribe_prompt"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textStyle="normal|bold"
|
2019-08-07 08:29:58 +00:00
|
|
|
android:textColor="?colorPrimary"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:lineSpacingExtra="4dp"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
2017-02-01 19:03:36 +00:00
|
|
|
android:layout_marginLeft="26dp"
|
|
|
|
|
android:layout_marginRight="26dp"/>
|
2017-01-10 17:05:03 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<FrameLayout
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribe.listitem1.box"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/subscriptionBox">
|
|
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_listitem1"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/SubscriptionListTitle"
|
2017-01-12 10:42:36 +00:00
|
|
|
/>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<ImageView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_down_black_24dp"
|
|
|
|
|
android:id="@+id/subscribe.listitem1.expand"
|
2019-02-28 13:21:14 +00:00
|
|
|
android:layout_gravity="end"/>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
</FrameLayout>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribe.listitem1.description"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_listitem1_description"
|
2017-01-10 17:05:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/SubscriptionListDescription"
|
|
|
|
|
android:visibility="gone"/>
|
2017-01-10 17:05:03 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<FrameLayout
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribe.listitem2.box"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/subscriptionBox">
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_listitem2"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/SubscriptionListTitle"
|
2017-01-12 10:42:36 +00:00
|
|
|
/>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<ImageView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_down_black_24dp"
|
|
|
|
|
android:id="@+id/subscribe.listitem2.expand"
|
2019-02-28 13:21:14 +00:00
|
|
|
android:layout_gravity="end"/>
|
2018-12-04 13:28:03 +00:00
|
|
|
</FrameLayout>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribe.listitem2.description"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_listitem2_description"
|
2017-01-10 17:05:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/SubscriptionListDescription"
|
|
|
|
|
android:visibility="gone" />
|
2017-01-10 17:05:03 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<FrameLayout
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribe.listitem3.box"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/subscriptionBox">
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_listitem3"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/SubscriptionListTitle"
|
2017-01-12 10:42:36 +00:00
|
|
|
/>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<ImageView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_down_black_24dp"
|
|
|
|
|
android:id="@+id/subscribe.listitem3.expand"
|
2019-02-28 13:21:14 +00:00
|
|
|
android:layout_gravity="end"/>
|
2018-12-04 13:28:03 +00:00
|
|
|
</FrameLayout>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribe.listitem3.description"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_listitem3_description"
|
2017-01-10 17:05:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/SubscriptionListDescription"
|
|
|
|
|
android:visibility="gone" />
|
2017-01-10 17:05:03 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<FrameLayout
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribe.listitem4.box"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/subscriptionBox"
|
|
|
|
|
android:layout_marginBottom="8dp">
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_listitem4"
|
2017-01-12 10:42:36 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/SubscriptionListTitle"
|
2017-01-12 10:42:36 +00:00
|
|
|
/>
|
2018-12-04 13:28:03 +00:00
|
|
|
<ImageView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_down_black_24dp"
|
|
|
|
|
android:id="@+id/subscribe.listitem4.expand"
|
2019-02-28 13:21:14 +00:00
|
|
|
android:layout_gravity="end"/>
|
2018-12-04 13:28:03 +00:00
|
|
|
</FrameLayout>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribe.listitem4.description"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_listitem4_description"
|
2017-01-10 17:05:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
style="@style/SubscriptionListDescription"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<ProgressBar
|
2017-02-03 12:21:42 +00:00
|
|
|
style="?android:attr/progressBarStyle"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:id="@+id/loadingIndicator"/>
|
|
|
|
|
|
2017-04-26 11:30:41 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/no_billing_subscriptions"
|
|
|
|
|
android:paddingTop="50dp"
|
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
<Button
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:text="@string/visit_habitica_website"
|
|
|
|
|
android:layout_marginBottom="50dp"
|
2019-04-25 08:06:56 +00:00
|
|
|
style="@style/HabiticaButton.Purple"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:visibility="gone" />
|
2017-04-26 11:30:41 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<LinearLayout
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscriptionOptions"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
|
>
|
|
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscription1month"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:recurringText="@string/month"
|
2019-08-24 11:00:20 +00:00
|
|
|
app:gemCapText="@string/subscribe1month_gemcap"/>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscription3month"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:recurringText="@string/three_months"
|
2019-08-24 11:00:20 +00:00
|
|
|
app:gemCapText="@string/subscribe3month_gemcap"
|
2017-02-03 12:21:42 +00:00
|
|
|
app:hourGlassCount="1" />
|
2018-12-04 13:28:03 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscription6month"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:recurringText="@string/six_months"
|
2019-08-24 11:00:20 +00:00
|
|
|
app:gemCapText="@string/subscribe6month_gemcap"
|
2017-02-03 12:21:42 +00:00
|
|
|
app:hourGlassCount="2" />
|
2018-12-04 13:28:03 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscription12month"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:recurringText="@string/twelve_months"
|
2019-08-24 11:00:20 +00:00
|
|
|
app:gemCapText="@string/subscribe12month_gemcap"
|
2017-02-03 12:21:42 +00:00
|
|
|
app:hourGlassCount="4" >
|
|
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
</com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<Button
|
2017-02-03 12:21:42 +00:00
|
|
|
android:text="@string/subscribe"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="36dp"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:id="@+id/subscribeButton"
|
2019-04-25 08:06:56 +00:00
|
|
|
style="@style/HabiticaButton.Purple.Small"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:textAllCaps="false"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_marginTop="8dp"/>
|
2018-12-04 13:28:03 +00:00
|
|
|
</LinearLayout>
|
2017-02-03 12:21:42 +00:00
|
|
|
|
|
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionDetailsView
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:id="@+id/subscriptionDetails"
|
|
|
|
|
android:layout_marginTop="24dp"/>
|
|
|
|
|
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textColor="@color/gray_300"
|
|
|
|
|
android:text="@string/subscribe_gift_description"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:layout_marginLeft="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginRight="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_large"/>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/gift_subscription_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/gift_subscription"
|
|
|
|
|
android:background="@color/transparent"
|
2019-08-07 08:29:58 +00:00
|
|
|
android:textColor="?colorAccent"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:textAllCaps="false"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2017-09-05 13:56:34 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:background="@color/gray_700">
|
|
|
|
|
<TextView android:id="@+id/supportTextView"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
|
android:paddingBottom="20dp"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/subscribe_title"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textColor="@color/gray_300"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:lineSpacingExtra="4dp"
|
2017-02-03 12:21:42 +00:00
|
|
|
android:layout_marginTop="16dp"/>
|
2018-12-04 13:28:03 +00:00
|
|
|
</LinearLayout>
|
2017-01-10 17:05:03 +00:00
|
|
|
</LinearLayout>
|
2018-11-06 15:11:02 +00:00
|
|
|
</androidx.core.widget.NestedScrollView>
|