2022-04-19 15:17:45 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2022-12-19 13:40:02 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
2022-04-19 15:17:45 +00:00
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/confetti_anchor"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"/>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
2022-05-09 14:38:22 +00:00
|
|
|
android:gravity="center_horizontal">
|
|
|
|
|
<Space
|
2022-04-19 15:17:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
2022-05-09 14:38:22 +00:00
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:gravity="center_horizontal">
|
2022-06-30 10:53:54 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.CurrencyView
|
2022-05-09 14:38:22 +00:00
|
|
|
android:id="@+id/gold_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:background="@drawable/armoire_gold_background"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:paddingStart="6dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
tools:text="118"/>
|
2022-04-19 15:17:45 +00:00
|
|
|
|
2022-05-09 14:38:22 +00:00
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/icon_wrapper"
|
|
|
|
|
android:layout_width="165dp"
|
|
|
|
|
android:layout_height="158dp"
|
|
|
|
|
android:layout_marginTop="23dp"
|
|
|
|
|
android:layout_marginBottom="23dp"
|
2022-05-12 08:05:05 +00:00
|
|
|
android:visibility="invisible"
|
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="158dp"
|
|
|
|
|
android:layout_height="158dp"
|
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
|
android:src="@drawable/circle_gray_700" />
|
2022-05-17 13:16:19 +00:00
|
|
|
<com.habitrpg.common.habitica.views.PixelArtView
|
2022-05-09 14:38:22 +00:00
|
|
|
android:id="@+id/icon_view"
|
|
|
|
|
android:layout_width="136dp"
|
|
|
|
|
android:layout_height="136dp"
|
|
|
|
|
android:layout_centerInParent="true"/>
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.SparkView
|
|
|
|
|
android:id="@+id/left_spark_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
app:color="@color/brand_500"
|
|
|
|
|
app:thickness="6dp"
|
|
|
|
|
app:maxSpacing="8dp"
|
|
|
|
|
app:length="12dp"
|
|
|
|
|
app:duration="3500"
|
|
|
|
|
android:layout_marginTop="12dp"/>
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.SparkView
|
|
|
|
|
android:id="@+id/right_spark_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
app:color="@color/brand_500"
|
|
|
|
|
app:thickness="6dp"
|
|
|
|
|
app:maxSpacing="10dp"
|
|
|
|
|
app:duration="4000"
|
|
|
|
|
app:length="12dp"
|
|
|
|
|
android:layout_marginEnd="4dp"/>
|
|
|
|
|
</RelativeLayout>
|
2022-04-19 15:17:45 +00:00
|
|
|
|
2022-05-09 14:38:22 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/title_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:text="+21 Experience"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textSize="28sp"
|
2022-07-12 16:48:19 +00:00
|
|
|
android:gravity="center"
|
2023-09-08 12:19:20 +00:00
|
|
|
android:alpha="0"
|
2022-05-09 14:38:22 +00:00
|
|
|
android:textColor="@color/text_primary"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/subtitle_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:text="You wrestle with the Armoire and gain Experience. Take that!"
|
2022-05-12 08:05:05 +00:00
|
|
|
android:textColor="@color/text_ternary"
|
|
|
|
|
android:layout_marginHorizontal="60dp"
|
2022-05-09 14:38:22 +00:00
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:textSize="20sp"
|
2022-05-12 08:05:05 +00:00
|
|
|
android:letterSpacing="0.04"
|
|
|
|
|
android:lineSpacingExtra="2dp"
|
2023-09-08 12:19:20 +00:00
|
|
|
android:alpha="0"
|
2022-05-09 14:38:22 +00:00
|
|
|
/>
|
|
|
|
|
</LinearLayout>
|
2022-04-19 15:17:45 +00:00
|
|
|
<Space
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:background="@drawable/armoire_background_full"
|
2022-04-19 15:17:45 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:gravity="center"
|
2023-09-06 07:34:20 +00:00
|
|
|
android:paddingTop="64dp">
|
2022-04-19 15:17:45 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/equipment_count_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/equipment_remaining"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
style="@style/Headline"
|
|
|
|
|
android:textStyle="bold"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/no_equipment_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/new_pieces_added_every_month"
|
|
|
|
|
style="@style/Body2"
|
|
|
|
|
android:textColor="@color/white"/>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:paddingHorizontal="24dp">
|
2022-04-19 15:17:45 +00:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/equip_button"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
2022-05-20 13:05:25 +00:00
|
|
|
android:layout_height="69dp"
|
2022-04-19 15:17:45 +00:00
|
|
|
android:text="@string/equip"
|
|
|
|
|
android:textStyle="bold"
|
2022-04-21 09:08:36 +00:00
|
|
|
style="@style/HabiticaButton.White"
|
2022-05-20 13:05:25 +00:00
|
|
|
android:padding="0dp"
|
2022-04-21 09:08:36 +00:00
|
|
|
android:layout_marginEnd="12dp"/>
|
2022-04-19 15:17:45 +00:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/close_button"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
2022-05-20 13:05:25 +00:00
|
|
|
android:layout_height="69dp"
|
2022-04-19 15:17:45 +00:00
|
|
|
android:text="@string/close"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
style="@style/HabiticaButton.White"/>
|
|
|
|
|
</LinearLayout>
|
2022-04-21 09:08:36 +00:00
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.ads.AdButton
|
|
|
|
|
android:id="@+id/ad_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="60dp"
|
|
|
|
|
app:text="@string/watch_ad_to_open"
|
|
|
|
|
android:layout_marginTop="4dp"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_marginHorizontal="24dp"
|
2022-04-21 09:08:36 +00:00
|
|
|
app:currency="gold" />
|
2023-08-28 09:36:13 +00:00
|
|
|
|
2023-09-08 12:19:20 +00:00
|
|
|
<LinearLayout
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/open_armoire_subscriber_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-09-08 12:19:20 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_marginTop="4dp">
|
2023-09-08 12:19:20 +00:00
|
|
|
<FrameLayout
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-09-08 12:19:20 +00:00
|
|
|
android:layout_height="65dp"
|
|
|
|
|
android:paddingStart="24dp"
|
|
|
|
|
android:paddingEnd="18dp">
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/open_armoire_subscriber_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="60dp"
|
|
|
|
|
android:text="@string/subscriber_button_armoire"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:background="@drawable/subscriber_benefit_button_bg"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:backgroundTint="@null"
|
|
|
|
|
android:textColor="@color/green_1"
|
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:padding="0dp"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@drawable/sub_perk_bg"
|
|
|
|
|
android:textColor="@color/green_500"
|
|
|
|
|
android:paddingHorizontal="6dp"
|
|
|
|
|
android:paddingVertical="4dp"
|
|
|
|
|
style="@style/Caption2"
|
|
|
|
|
android:layout_gravity="top|end"
|
|
|
|
|
android:text="@string/sub_perk"/>
|
|
|
|
|
</FrameLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
<TextView
|
2023-09-08 12:19:20 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-09-08 12:19:20 +00:00
|
|
|
android:text="@string/subscription_benefit_armoire_sub"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
style="@style/Body2"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:paddingHorizontal="48dp"
|
|
|
|
|
android:layout_marginTop="6dp"/>
|
|
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/unsubbed_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_large"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
|
android:paddingHorizontal="24dp"
|
|
|
|
|
android:background="@drawable/subscribe_incentive_bg_topround"
|
|
|
|
|
>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/subscribe_modal_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="69dp"
|
|
|
|
|
android:text="@string/subscribe_incentive_button_armoire"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
style="@style/HabiticaButton.White"
|
|
|
|
|
android:textColor="@color/teal_10"
|
|
|
|
|
android:padding="0dp"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:text="@string/subscribe_incentive_text_armoire"
|
|
|
|
|
android:textColor="@color/teal_1"
|
|
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_marginTop="3dp"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/drop_rate_button_unsubbed"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/armoire_drop_rates"
|
|
|
|
|
android:textColor="@color/teal_1"
|
2023-09-06 07:34:20 +00:00
|
|
|
android:alpha="0.75"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_marginTop="5dp"
|
2023-09-06 07:34:20 +00:00
|
|
|
android:layout_marginBottom="@dimen/spacing_medium"
|
2023-08-28 09:36:13 +00:00
|
|
|
style="@style/Body2"/>
|
|
|
|
|
</LinearLayout>
|
2022-04-19 15:17:45 +00:00
|
|
|
<TextView
|
2022-04-21 09:08:36 +00:00
|
|
|
android:id="@+id/drop_rate_button"
|
2022-04-19 15:17:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/armoire_drop_rates"
|
2022-05-09 14:38:22 +00:00
|
|
|
android:textColor="@color/brand_600"
|
2022-04-26 11:35:19 +00:00
|
|
|
android:layout_marginTop="22dp"
|
2023-09-11 09:13:41 +00:00
|
|
|
android:layout_marginBottom="8dp"
|
2022-04-19 15:17:45 +00:00
|
|
|
style="@style/Body2"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
</FrameLayout>
|