habitica-android/Habitica/res/layout/fragment_gem_purchase.xml

245 lines
12 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2021-01-04 11:05:30 +00:00
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2016-09-29 17:48:34 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-01-04 11:05:30 +00:00
xmlns:tools="http://schemas.android.com/tools"
2016-09-29 17:48:34 +00:00
android:scrollbarSize="3dp"
android:scrollbarThumbVertical="@color/scrollbarThumb"
2021-06-04 14:11:48 +00:00
android:scrollbars="vertical">
<LinearLayout
android:layout_width="match_parent"
2016-09-29 17:48:34 +00:00
android:layout_height="wrap_content"
android:orientation="vertical">
2020-09-01 10:53:46 +00:00
<RelativeLayout
android:id="@+id/promo_banner"
android:layout_width="match_parent"
android:layout_height="80dp"
android:background="@drawable/g1g1_box"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_marginTop="10dp"
android:clipChildren="true"
android:clipToPadding="true"
2020-09-15 07:28:34 +00:00
android:clickable="true"
2021-01-04 11:05:30 +00:00
android:visibility="gone"
tools:visibility="visible">
2020-09-01 10:53:46 +00:00
<ImageView
android:id="@+id/promo_banner_left_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="false"/>
<ImageView
android:id="@+id/promo_banner_right_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"/>
<LinearLayout
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:id="@+id/promo_banner_title_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-09-17 11:23:27 +00:00
android:layout_marginBottom="6dp"/>
2020-12-14 10:16:55 +00:00
<TextView
android:id="@+id/promo_banner_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
2021-01-04 11:05:30 +00:00
android:textSize="16sp"
android:textStyle="bold"
2020-12-14 10:16:55 +00:00
android:layout_marginStart="84dp"
android:layout_marginEnd="84dp"
android:gravity="center"
android:textColor="@color/white"
android:layout_marginBottom="6dp"/>
2020-09-01 10:53:46 +00:00
<TextView
android:id="@+id/promo_banner_duration_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-09-15 07:28:34 +00:00
style="@style/Overline"/>
2020-09-01 10:53:46 +00:00
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="60dp"
android:layout_marginEnd="60dp"
2020-09-01 10:53:46 +00:00
android:gravity="center_horizontal"
android:textColor="@color/white"
2019-11-25 13:58:20 +00:00
android:textSize="16sp"
android:fontFamily="@string/font_family_medium"
android:layout_marginBottom="12dp"
android:layout_centerInParent="true"/>
</RelativeLayout>
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:layout_width="match_parent"
2019-09-25 19:36:29 +00:00
android:layout_height="wrap_content"
android:padding="20dp">
2019-11-25 13:58:20 +00:00
<ImageView
android:id="@+id/header_image_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/gem_purchase_header"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="20dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/gem_purchase_subtitle"
android:gravity="center"
android:textStyle="normal|bold"
android:textColor="?colorPrimary"
android:textSize="16sp"
android:lineSpacingExtra="4dp"
android:layout_marginTop="23dp"
2019-11-25 13:58:20 +00:00
android:layout_marginBottom="12dp"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large" />
2015-11-29 20:10:32 +00:00
2020-09-15 07:28:34 +00:00
<com.habitrpg.android.habitica.ui.views.DayNightTextView
android:text="@string/gem_purchase_listitem1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/GemPurchaseListItem"
/>
2020-09-15 07:28:34 +00:00
<com.habitrpg.android.habitica.ui.views.DayNightTextView
android:text="@string/gem_purchase_listitem2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/GemPurchaseListItem"
/>
2020-09-15 07:28:34 +00:00
<com.habitrpg.android.habitica.ui.views.DayNightTextView
android:text="@string/gem_purchase_listitem3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/GemPurchaseListItem"
/>
2020-09-15 07:28:34 +00:00
<com.habitrpg.android.habitica.ui.views.DayNightTextView
android:text="@string/gem_purchase_listitem4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/GemPurchaseListItem"
/>
2020-09-15 07:28:34 +00:00
<com.habitrpg.android.habitica.ui.views.DayNightTextView
2016-09-29 17:48:34 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/no_billing_gems"
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"
style="@style/HabiticaButton.Purple"
android:visibility="gone" />
2016-09-29 17:48:34 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-25 13:58:20 +00:00
android:orientation="vertical"
android:layout_marginTop="@dimen/spacing_large">
<LinearLayout
android:layout_width="match_parent"
2016-09-29 17:48:34 +00:00
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="16dp">
<com.habitrpg.android.habitica.ui.GemPurchaseOptionsView
android:id="@+id/gems_4_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:gemAmount="4"
app:gemDrawable="@drawable/gems_4"
2020-09-17 11:47:02 +00:00
android:layout_marginEnd="@dimen/spacing_large"
/>
<com.habitrpg.android.habitica.ui.GemPurchaseOptionsView
android:id="@+id/gems_21_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:gemAmount="21"
app:gemDrawable="@drawable/gems_21" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
2016-09-29 17:48:34 +00:00
android:layout_height="wrap_content"
android:orientation="horizontal"
android:dividerPadding="16dp"
android:showDividers="middle"
android:divider="@android:color/white">
<com.habitrpg.android.habitica.ui.GemPurchaseOptionsView
android:id="@+id/gems_42_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:gemAmount="42"
app:gemDrawable="@drawable/gems_42"
2020-09-17 11:47:02 +00:00
android:layout_marginEnd="@dimen/spacing_large" />
<com.habitrpg.android.habitica.ui.GemPurchaseOptionsView
android:id="@+id/gems_84_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:gemAmount="84"
app:gemDrawable="@drawable/gems_84" />
</LinearLayout>
2016-09-29 17:48:34 +00:00
</LinearLayout>
2019-11-25 13:58:20 +00:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:src="@drawable/gift_sub_gift"
2020-09-15 07:28:34 +00:00
android:layout_marginTop="30dp"
2019-11-26 16:37:01 +00:00
android:layout_marginBottom="6dp" />
2019-10-11 11:18:38 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_quad"
2019-10-11 11:18:38 +00:00
android:text="@string/gems_gift_description"
android:gravity="center_horizontal"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large"/>
2019-10-11 11:18:38 +00:00
<Button
android:id="@+id/gift_gems_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/gift_gems"
android:background="@color/transparent"
android:textColor="?colorAccent"
android:textAllCaps="false"/>
2016-09-29 17:48:34 +00:00
</LinearLayout>
2019-10-15 16:22:54 +00:00
<TextView android:id="@+id/supportTextView"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
2020-09-17 11:47:02 +00:00
android:paddingStart="41dp"
android:paddingEnd="41dp"
2020-09-15 07:28:34 +00:00
android:paddingBottom="20dp"
android:paddingTop="20dp"
2019-10-15 16:22:54 +00:00
android:text="@string/gem_purchase_title"
android:layout_gravity="center_horizontal"
android:gravity="center"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_ternary"
2019-10-15 16:22:54 +00:00
android:textSize="14sp"
android:lineSpacingExtra="4dp"
2020-09-04 16:17:34 +00:00
android:background="@color/window_background"
2019-10-15 16:22:54 +00:00
android:drawablePadding="@dimen/spacing_medium"/>
2015-11-29 20:10:32 +00:00
<com.habitrpg.android.habitica.ui.views.promo.SubscriptionBuyGemsPromoView
android:id="@+id/subscription_promo"
android:layout_width="match_parent"
2019-09-26 16:02:28 +00:00
android:layout_height="148dp" />
2016-09-29 17:48:34 +00:00
</LinearLayout>
2018-11-06 15:11:02 +00:00
</androidx.core.widget.NestedScrollView>