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

101 lines
4.1 KiB
XML
Raw Normal View History

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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
2023-03-24 10:34:24 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2017-07-20 12:19:10 +00:00
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp">
2017-07-20 12:19:10 +00:00
<TextView
android:id="@+id/label"
android:layout_width="0dp"
2017-07-20 12:19:10 +00:00
android:layout_height="wrap_content"
android:layout_weight="1"
2024-04-05 13:14:31 +00:00
style="@style/Caption4"
2017-07-20 12:19:10 +00:00
tools:text="Section Header"
2024-04-05 13:14:31 +00:00
android:textColor="?textColorSecondary"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" />
2024-04-05 13:14:31 +00:00
<TextView
android:id="@+id/switches_in_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingVertical="1dp"
android:textColor="?tintedUiDetails"
style="@style/Caption2"
tools:text="Switches in X"
android:visibility="gone"
tools:visibility="visible" />
<Spinner
2024-04-05 13:14:31 +00:00
android:id="@+id/class_selection_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_gravity="bottom"
tools:visibility="visible"
/>
2017-07-20 12:19:10 +00:00
</LinearLayout>
2022-01-20 14:00:57 +00:00
<TextView
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"
tools:text="@string/class_gear_disclaimer"/>
2023-03-24 10:34:24 +00:00
<LinearLayout
android:id="@+id/change_class_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/layout_rounded_bg_window"
android:layout_marginHorizontal="12dp"
android:layout_marginVertical="@dimen/spacing_medium"
android:visibility="gone"
2023-12-21 13:17:06 +00:00
android:baselineAligned="false"
2023-03-24 10:34:24 +00:00
android:clipToOutline="true">
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
2022-01-20 14:00:57 +00:00
android:layout_height="wrap_content"
2023-03-24 10:34:24 +00:00
android:orientation="vertical"
android:layout_marginStart="13dp"
android:layout_marginVertical="8dp"
android:layout_gravity="center">
<TextView
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
2023-03-29 10:11:28 +00:00
android:id="@+id/change_class_description"
2023-03-24 10:34:24 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2023-03-29 10:11:28 +00:00
tools:text="@string/unlock_gear_and_skills"
2023-03-24 10:34:24 +00:00
android:textColor="?textColorSecondary"
style="@style/Body2"/>
</LinearLayout>
<FrameLayout
android:layout_width="59dp"
android:layout_height="73dp"
2023-03-28 09:03:32 +00:00
android:background="@color/offset_background_30">
2023-03-24 10:34:24 +00:00
<com.habitrpg.android.habitica.ui.views.CurrencyView
android:id="@+id/change_class_currency_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2023-03-28 09:03:32 +00:00
style="@style/Body1"
2023-03-24 10:34:24 +00:00
app:currency="gems"/>
</FrameLayout>
2022-01-20 14:00:57 +00:00
</LinearLayout>
2023-03-24 10:34:24 +00:00
</LinearLayout>