mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-15 12:16:31 +00:00
308 lines
14 KiB
XML
308 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout 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:id="@+id/refresh_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scrollbarSize="3dp"
|
|
android:scrollbarThumbVertical="@color/scrollbarThumb"
|
|
android:scrollbars="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.compose.ui.platform.ComposeView
|
|
android:id="@+id/promo_compose_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/promo_banner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="@drawable/g1g1_box"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:clipChildren="true"
|
|
android:clipToOutline="true"
|
|
android:clipToPadding="true"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/promo_banner_left_image"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentBottom="false"
|
|
android:scaleType="center"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<ImageView
|
|
android:id="@+id/promo_banner_right_image"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:scaleType="center"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/promo_banner_title_image"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="6dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/promo_banner_title_text"
|
|
style="@style/SubHeader1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="84dp"
|
|
android:layout_marginEnd="84dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:gravity="center"
|
|
android:textColor="@color/white"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/promo_banner_duration_view"
|
|
style="@style/Overline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginStart="60dp"
|
|
android:layout_marginEnd="60dp"
|
|
android:layout_marginBottom="12dp"
|
|
android:fontFamily="@string/font_family_medium"
|
|
android:gravity="center_horizontal"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/header_image_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="20dp"
|
|
android:src="@drawable/subscribe_header"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionDetailsView
|
|
android:id="@+id/subscriptionDetails"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<com.habitrpg.android.habitica.ui.views.DayNightTextView
|
|
android:id="@+id/subscribeBenefitsTitle"
|
|
style="@style/SubHeader1"
|
|
android:layout_width="250dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center"
|
|
android:lineSpacingExtra="4dp"
|
|
android:text="@string/subscribe_prompt"
|
|
app:dayTextColor="@color/text_brand"
|
|
app:nightTextColor="@color/gray_400" />
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:src="@drawable/separator_fancy"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriberBenefitView
|
|
android:id="@+id/subscriber_benefits"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginBottom="12dp"
|
|
android:src="@drawable/separator_fancy"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/loadingIndicator"
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="50dp"
|
|
android:paddingBottom="10dp"
|
|
android:text="@string/no_billing_subscriptions"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
style="@style/HabiticaButton.Purple"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginBottom="50dp"
|
|
android:text="@string/visit_habitica_website"
|
|
android:visibility="gone" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/subscriptionOptions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
style="@style/SubHeader1"
|
|
android:layout_width="250dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="20dp"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/subscribe_options_title"
|
|
android:textColor="@color/text_brand" />
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
|
android:id="@+id/subscription1month"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:gemCapText="@string/subscribe1month_gemcap"
|
|
app:recurringText="@string/month" />
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
|
android:id="@+id/subscription3month"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:gemCapText="@string/subscribe3month_gemcap"
|
|
app:hourGlassCount="1"
|
|
app:recurringText="@string/three_months" />
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
|
android:id="@+id/subscription6month"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:gemCapText="@string/subscribe6month_gemcap"
|
|
app:hourGlassCount="2"
|
|
app:recurringText="@string/six_months" />
|
|
|
|
<com.habitrpg.android.habitica.ui.views.subscriptions.SubscriptionOptionView
|
|
android:id="@+id/subscription12month"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:flagText="@string/save_20"
|
|
app:gemCapText="@string/subscribe12month_gemcap"
|
|
app:hourGlassCount="4"
|
|
app:recurringText="@string/twelve_months" />
|
|
|
|
<Button
|
|
android:id="@+id/subscribeButton"
|
|
style="@style/HabiticaButton.Purple.Small"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/subscribe"
|
|
android:textAllCaps="false" />
|
|
|
|
<TextView
|
|
android:id="@+id/subscription_disclaimer_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/text_quad"
|
|
android:textSize="14sp"
|
|
tools:text="This will contain text explaining subscriptions."
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"/>
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="24dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:src="@drawable/gift_sub_gift"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/subscribe_gift_description"
|
|
android:textColor="@color/text_quad" />
|
|
|
|
<Button
|
|
android:id="@+id/gift_subscription_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/transparent"
|
|
android:text="@string/gift_subscription"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/text_brand_neon" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorWindowBackground">
|
|
|
|
<TextView
|
|
android:id="@+id/supportTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="16dp"
|
|
android:drawablePadding="@dimen/spacing_medium"
|
|
android:gravity="center"
|
|
android:lineSpacingExtra="4dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:text="@string/subscribe_title"
|
|
android:textColor="@color/text_quad"
|
|
android:textSize="14sp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|