2017-07-20 12:19:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2024-04-29 14:14:23 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-07-20 12:19:10 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-11-06 11:49:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2024-06-06 08:44:33 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginHorizontal="12dp">
|
2024-04-29 14:14:23 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2024-06-06 08:44:33 +00:00
|
|
|
android:id="@+id/header_container"
|
2024-04-29 14:14:23 +00:00
|
|
|
android:layout_width="match_parent"
|
2024-06-06 08:44:33 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:background="@drawable/shop_category_header_background"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_large">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="12dp"
|
|
|
|
|
android:paddingVertical="9dp"
|
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/shop_header_sparkle" />
|
2024-04-05 13:14:31 +00:00
|
|
|
<TextView
|
2024-04-29 14:14:23 +00:00
|
|
|
android:id="@+id/label"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
2024-06-06 08:44:33 +00:00
|
|
|
style="@style/Body1"
|
2024-04-29 14:14:23 +00:00
|
|
|
tools:text="Section Header"
|
2024-06-06 08:44:33 +00:00
|
|
|
android:gravity="center"
|
|
|
|
|
android:textColor="@color/white" />
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/shop_header_sparkle" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<View
|
2024-06-06 09:27:26 +00:00
|
|
|
android:id="@+id/divider"
|
2024-06-06 08:44:33 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="3dp"
|
2024-06-06 09:27:26 +00:00
|
|
|
android:visibility="gone"
|
2024-06-06 08:44:33 +00:00
|
|
|
android:background="#EA8C31" />
|
2024-04-29 14:14:23 +00:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/switches_in_label"
|
2024-06-06 08:44:33 +00:00
|
|
|
android:layout_width="match_parent"
|
2024-04-29 14:14:23 +00:00
|
|
|
android:layout_height="wrap_content"
|
2024-06-06 08:44:33 +00:00
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:background="@drawable/shop_header_time_background"
|
|
|
|
|
android:layout_marginHorizontal="3dp"
|
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
|
android:paddingVertical="6dp"
|
|
|
|
|
android:gravity="center"
|
2024-04-29 14:14:23 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
2024-06-06 08:44:33 +00:00
|
|
|
style="@style/Body1"
|
2024-04-29 14:14:23 +00:00
|
|
|
tools:text="Switches in X"
|
|
|
|
|
android:visibility="gone"
|
2024-05-06 11:33:45 +00:00
|
|
|
tools:visibility="visible" />
|
2024-04-29 14:14:23 +00:00
|
|
|
|
2024-06-06 08:44:33 +00:00
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/class_selection_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
|
android:layout_marginHorizontal="3dp"
|
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
|
android:paddingEnd="3dp"
|
|
|
|
|
android:paddingVertical="6dp">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/class_name_label"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
/>
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
2024-06-06 09:27:26 +00:00
|
|
|
android:src="@drawable/ic_arrow_drop_down_10dp" />
|
2024-06-06 08:44:33 +00:00
|
|
|
</LinearLayout>
|
2017-10-31 17:31:06 +00:00
|
|
|
<Spinner
|
2024-04-29 14:14:23 +00:00
|
|
|
android:id="@+id/class_selection_spinner"
|
|
|
|
|
android:layout_width="wrap_content"
|
2024-06-06 08:44:33 +00:00
|
|
|
android:layout_height="10dp"
|
2024-06-06 09:27:26 +00:00
|
|
|
android:visibility="invisible" />
|
2024-06-06 08:44:33 +00:00
|
|
|
</FrameLayout>
|
2017-07-20 12:19:10 +00:00
|
|
|
</LinearLayout>
|
2024-04-29 14:14:23 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2022-01-20 14:00:57 +00:00
|
|
|
android:id="@+id/headerNotesView"
|
2023-03-24 10:34:24 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-01-20 14:00:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textColor="@color/text_quad"
|
2024-04-29 14:14:23 +00:00
|
|
|
tools:text="@string/class_gear_disclaimer" />
|
2023-03-24 10:34:24 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2024-04-29 14:14:23 +00:00
|
|
|
android:id="@+id/change_class_button"
|
|
|
|
|
android:layout_width="match_parent"
|
2022-01-20 14:00:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2024-04-29 14:14:23 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:background="@drawable/layout_rounded_bg_window"
|
|
|
|
|
android:layout_marginHorizontal="12dp"
|
|
|
|
|
android:layout_marginVertical="@dimen/spacing_medium"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:baselineAligned="false"
|
|
|
|
|
android:clipToOutline="true">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
2023-03-24 10:34:24 +00:00
|
|
|
android:layout_height="wrap_content"
|
2024-04-29 14:14:23 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginStart="13dp"
|
|
|
|
|
android:layout_marginVertical="8dp"
|
|
|
|
|
android:layout_gravity="center">
|
|
|
|
|
|
2023-03-24 10:34:24 +00:00
|
|
|
<TextView
|
2024-04-29 14:14:23 +00:00
|
|
|
android:id="@+id/change_class_label"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:text="Change class to Warrior"
|
|
|
|
|
android:textColor="?textColorPrimary"
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:layout_marginBottom="1dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/change_class_description"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:text="@string/unlock_gear_and_skills"
|
|
|
|
|
android:textColor="?textColorSecondary"
|
|
|
|
|
style="@style/Body2" />
|
2023-03-24 10:34:24 +00:00
|
|
|
</LinearLayout>
|
2024-04-29 14:14:23 +00:00
|
|
|
|
2023-03-24 10:34:24 +00:00
|
|
|
<FrameLayout
|
2024-04-29 14:14:23 +00:00
|
|
|
android:layout_width="59dp"
|
|
|
|
|
android:layout_height="73dp"
|
|
|
|
|
android:background="@color/offset_background_30">
|
|
|
|
|
|
2023-03-24 10:34:24 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.CurrencyView
|
2024-04-29 14:14:23 +00:00
|
|
|
android:id="@+id/change_class_currency_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
app:currency="gems" />
|
2023-03-24 10:34:24 +00:00
|
|
|
</FrameLayout>
|
2022-01-20 14:00:57 +00:00
|
|
|
</LinearLayout>
|
2023-03-24 10:34:24 +00:00
|
|
|
</LinearLayout>
|