2018-12-04 13:28:03 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
2021-06-04 14:11:48 +00:00
|
|
|
tools:context="com.habitrpg.android.habitica.ui.activities.FixCharacterValuesActivity">
|
2018-12-04 13:28:03 +00:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minHeight="?attr/actionBarSize"
|
2021-01-04 11:05:30 +00:00
|
|
|
android:background="?attr/colorContentBackground"
|
2018-12-04 13:28:03 +00:00
|
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
|
|
|
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2019-08-24 10:33:14 +00:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_large">
|
2022-05-17 13:16:19 +00:00
|
|
|
<com.habitrpg.common.habitica.views.AvatarView
|
2018-12-04 13:28:03 +00:00
|
|
|
android:id="@+id/avatar_view"
|
|
|
|
|
android:layout_width="88dp"
|
|
|
|
|
android:layout_height="84dp"
|
|
|
|
|
app:showBackground="false"
|
|
|
|
|
app:showPet="false"
|
|
|
|
|
app:showMount="false"
|
|
|
|
|
app:showSleeping="false"
|
2024-01-05 15:05:40 +00:00
|
|
|
android:clipChildren="false"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_gravity="center_horizontal"/>
|
2022-06-30 10:53:54 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.UsernameLabel
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/display_name_text_view"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
/>
|
|
|
|
|
<TextView
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/username_text_view"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColor="@color/text_quad"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_large"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:text="@string/gift_subscription_subtitle"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColor="@color/text_quad"
|
2020-09-17 11:47:02 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_large"/>
|
2018-12-04 13:28:03 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/subscriptionOptions"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginTop="24dp"
|
2020-09-17 11:47:02 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_marginBottom="@dimen/spacing_large">
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/subscription1MonthView"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-01-04 11:05:30 +00:00
|
|
|
app:recurringText="@string/one_month_one_time"
|
2019-08-24 11:00:20 +00:00
|
|
|
app:gemCapText="@string/subscribe1month_gemcap"
|
2018-12-04 13:28:03 +00:00
|
|
|
app:isNonRecurring="true"/>
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/subscription3MonthView"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-01-04 11:05:30 +00:00
|
|
|
app:recurringText="@string/three_months_one_time"
|
2019-08-24 11:00:20 +00:00
|
|
|
app:gemCapText="@string/subscribe3month_gemcap"
|
2018-12-04 13:28:03 +00:00
|
|
|
app:isNonRecurring="true"
|
|
|
|
|
app:hourGlassCount="1" />
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/subscription6MonthView"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-01-04 11:05:30 +00:00
|
|
|
app:recurringText="@string/six_months_one_time"
|
2019-08-24 11:00:20 +00:00
|
|
|
app:gemCapText="@string/subscribe6month_gemcap"
|
2018-12-04 13:28:03 +00:00
|
|
|
app:isNonRecurring="true"
|
|
|
|
|
app:hourGlassCount="2" />
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/subscription12MonthView"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-01-04 11:05:30 +00:00
|
|
|
app:recurringText="@string/twelve_months_one_time"
|
2019-08-24 11:00:20 +00:00
|
|
|
app:gemCapText="@string/subscribe12month_gemcap"
|
2018-12-04 13:28:03 +00:00
|
|
|
app:isNonRecurring="true"
|
2021-01-04 11:05:30 +00:00
|
|
|
app:flagText="@string/save_20"
|
2018-12-04 13:28:03 +00:00
|
|
|
app:hourGlassCount="4" >
|
|
|
|
|
|
|
|
|
|
</com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:text="@string/send_gift"
|
|
|
|
|
android:layout_width="match_parent"
|
2020-09-15 07:28:34 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-09-08 17:23:01 +00:00
|
|
|
android:id="@+id/subscription_button"
|
2019-04-25 08:06:56 +00:00
|
|
|
style="@style/HabiticaButton.Purple.Small"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:textAllCaps="false"
|
|
|
|
|
android:layout_marginTop="8dp"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/gift_subscription_container"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-14 10:16:55 +00:00
|
|
|
android:background="@drawable/g1g1_menu_background"
|
2021-01-04 11:05:30 +00:00
|
|
|
android:paddingHorizontal="32dp"
|
|
|
|
|
android:paddingVertical="16dp"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:orientation="vertical">
|
2020-12-14 10:16:55 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="8dp">
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/g1g1_sparkle_left" />
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/gift_one_get_one"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:textColor="@color/white"
|
2020-12-14 10:16:55 +00:00
|
|
|
android:textSize="17sp"
|
|
|
|
|
android:layout_marginHorizontal="12dp"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:fontFamily="@string/font_family_medium"/>
|
2020-12-14 10:16:55 +00:00
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/g1g1_sparkle_right" />
|
|
|
|
|
</LinearLayout>
|
2018-12-04 13:28:03 +00:00
|
|
|
<TextView
|
2020-12-14 10:16:55 +00:00
|
|
|
android:layout_width="300dp"
|
2018-12-04 13:28:03 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/gift_one_get_one_detailed_description"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="14sp"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
</LinearLayout>
|