mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-27 08:40:00 +00:00
147 lines
7.2 KiB
XML
147 lines
7.2 KiB
XML
|
|
<?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"
|
||
|
|
tools:context="com.habitrpg.android.habitica.ui.activities.FixCharacterValuesActivity"
|
||
|
|
android:background="@color/white">
|
||
|
|
<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"
|
||
|
|
android:theme="@style/Toolbar"
|
||
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
||
|
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"/>
|
||
|
|
|
||
|
|
</com.google.android.material.appbar.AppBarLayout>
|
||
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
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">
|
||
|
|
<com.habitrpg.android.habitica.ui.AvatarView
|
||
|
|
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"
|
||
|
|
android:layout_gravity="center_horizontal"/>
|
||
|
|
<com.habitrpg.android.habitica.ui.views.social.UsernameLabel
|
||
|
|
android:id="@+id/display_name_textview"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center_horizontal"
|
||
|
|
/>
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/username_textview"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:textColor="@color/gray_300"
|
||
|
|
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"
|
||
|
|
android:textColor="@color/gray_300"
|
||
|
|
android:layout_marginLeft="@dimen/spacing_large"
|
||
|
|
android:layout_marginRight="@dimen/spacing_large"/>
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/subscriptionOptions"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:layout_marginTop="24dp"
|
||
|
|
android:layout_marginLeft="@dimen/spacing_large"
|
||
|
|
android:layout_marginRight="@dimen/spacing_large"
|
||
|
|
android:layout_marginBottom="@dimen/spacing_large">
|
||
|
|
|
||
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
||
|
|
android:id="@+id/subscription1month"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:recurringText="@string/one_month"
|
||
|
|
app:gemCapText="@string/subscribe1month.gemcap"
|
||
|
|
app:isNonRecurring="true"/>
|
||
|
|
|
||
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
||
|
|
android:id="@+id/subscription3month"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:recurringText="@string/three_months"
|
||
|
|
app:gemCapText="@string/subscribe3month.gemcap"
|
||
|
|
app:isNonRecurring="true"
|
||
|
|
app:hourGlassCount="1" />
|
||
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
||
|
|
android:id="@+id/subscription6month"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:recurringText="@string/six_months"
|
||
|
|
app:gemCapText="@string/subscribe6month.gemcap"
|
||
|
|
app:isNonRecurring="true"
|
||
|
|
app:hourGlassCount="2" />
|
||
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
||
|
|
android:id="@+id/subscription12month"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:recurringText="@string/twelve_months"
|
||
|
|
app:gemCapText="@string/subscribe12month.gemcap"
|
||
|
|
app:isNonRecurring="true"
|
||
|
|
app:hourGlassCount="4" >
|
||
|
|
|
||
|
|
</com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView>
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:text="@string/send_gift"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="36dp"
|
||
|
|
android:id="@+id/subscribeButton"
|
||
|
|
style="@style/Button.Purple.Small"
|
||
|
|
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"
|
||
|
|
android:background="@color/blue_50"
|
||
|
|
android:padding="@dimen/spacing_large"
|
||
|
|
android:gravity="center_horizontal"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<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"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:fontFamily="@string/font_family_medium"/>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
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>
|