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

238 lines
11 KiB
XML
Raw Normal View History

2017-10-17 17:18:34 +00:00
<?xml version="1.0" encoding="utf-8"?>
2025-03-05 09:38:37 +00:00
<com.habitrpg.android.habitica.ui.views.HabiticaScrollView
2025-01-30 10:29:45 +00:00
android:id="@+id/nested_scroll_view"
2017-10-17 17:18:34 +00:00
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"
android:scrollbarSize="3dp"
android:scrollbarThumbVertical="@color/scrollbarThumb"
2021-06-04 14:11:48 +00:00
android:scrollbars="vertical">
2019-06-13 08:54:47 +00:00
<LinearLayout
2017-10-17 17:18:34 +00:00
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="12dp"
android:paddingBottom="20dp">
2017-10-17 19:23:06 +00:00
<LinearLayout
2017-10-30 08:25:33 +00:00
android:id="@+id/statsAllocationButton"
2017-10-17 19:23:06 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-18 11:19:10 +00:00
android:gravity="center"
android:layout_marginTop="6dp"
android:layout_marginBottom="18dp">
2017-10-17 19:23:06 +00:00
<ImageView
android:id="@+id/leftSparklesView"
android:layout_width="77dp"
android:layout_height="24dp"
2020-09-15 07:28:34 +00:00
android:scaleType="fitCenter"
android:contentDescription="@null" />
2017-10-17 19:23:06 +00:00
<TextView
android:id="@+id/numberOfPointsTextView"
android:layout_width="wrap_content"
android:layout_height="36dp"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="12dp"
android:layout_marginEnd="12dp"
android:gravity="center"/>
2017-10-17 19:23:06 +00:00
<ImageView
android:id="@+id/rightSparklesView"
android:layout_width="77dp"
android:layout_height="24dp"
2020-09-15 07:28:34 +00:00
android:scaleType="fitCenter"
android:contentDescription="@null" />
2017-10-17 19:23:06 +00:00
</LinearLayout>
<TextView
android:id="@+id/unlock_at_level"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/unlock_attribute_points"
android:gravity="center"
android:padding="@dimen/spacing_large"
style="@style/Caption4"/>
2017-11-15 18:30:01 +00:00
<com.habitrpg.android.habitica.ui.views.stats.StatsView
2017-10-17 17:18:34 +00:00
android:id="@+id/strengthStatsView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:statsTitle="@string/strength"
2020-09-15 07:28:34 +00:00
app:titleBackgroundColor="@color/background_red"
app:statsColor="@color/text_red"
2017-10-17 17:18:34 +00:00
android:layout_marginBottom="12dp"/>
2017-11-15 18:30:01 +00:00
<com.habitrpg.android.habitica.ui.views.stats.StatsView
2017-10-17 17:18:34 +00:00
android:id="@+id/intelligenceStatsView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:statsTitle="@string/intelligence"
2020-09-15 07:28:34 +00:00
app:titleBackgroundColor="@color/background_blue"
app:statsColor="@color/text_blue"
2017-10-17 17:18:34 +00:00
android:layout_marginBottom="12dp"/>
2017-11-15 18:30:01 +00:00
<com.habitrpg.android.habitica.ui.views.stats.StatsView
2017-10-17 17:18:34 +00:00
android:id="@+id/constitutionStatsView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:statsTitle="@string/constitution"
2020-09-15 07:28:34 +00:00
app:titleBackgroundColor="@color/background_yellow"
app:statsColor="@color/text_yellow"
2017-10-17 17:18:34 +00:00
android:layout_marginBottom="12dp"/>
2017-11-15 18:30:01 +00:00
<com.habitrpg.android.habitica.ui.views.stats.StatsView
2017-10-17 17:18:34 +00:00
android:id="@+id/perceptionStatsView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:statsTitle="@string/perception"
2020-09-15 07:28:34 +00:00
app:titleBackgroundColor="@color/background_brand"
app:statsColor="@color/text_brand"
2017-10-17 17:18:34 +00:00
android:layout_marginBottom="12dp"/>
2020-09-15 07:28:34 +00:00
<com.google.android.material.switchmaterial.SwitchMaterial
2017-10-17 19:23:06 +00:00
android:id="@+id/automaticAllocationSwitch"
2017-10-17 17:18:34 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/auto_allocate_points"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="@dimen/content_border"
android:layout_marginEnd="@dimen/content_border"
2017-10-17 19:23:06 +00:00
android:layout_marginBottom="20dp"/>
2017-10-18 11:19:10 +00:00
<LinearLayout
2017-10-17 19:23:06 +00:00
android:id="@+id/autoAllocationModeWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:paddingStart="@dimen/content_border"
android:paddingEnd="@dimen/content_border"
2022-11-22 14:48:15 +00:00
android:background="?attr/colorWindowBackground"
2017-10-17 19:23:06 +00:00
android:paddingTop="16dp"
2017-10-18 11:19:10 +00:00
android:paddingBottom="16dp"
android:orientation="vertical">
<LinearLayout
2017-10-17 19:23:06 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-18 11:19:10 +00:00
android:layout_marginBottom="8dp"
android:gravity="center_vertical">
<RadioButton
android:id="@+id/distributeEvenlyButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/distribute_evenly"/>
<ImageButton
android:id="@+id/distributeEvenlyHelpButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/transparent"
2020-09-15 07:28:34 +00:00
android:layout_marginStart="12dp"/>
2017-10-18 11:19:10 +00:00
</LinearLayout>
<LinearLayout
2017-10-17 19:23:06 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-18 11:19:10 +00:00
android:layout_marginBottom="8dp"
android:gravity="center_vertical">
<RadioButton
android:id="@+id/distributeClassButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/distribute_class"/>
<ImageButton
android:id="@+id/distributeClassHelpButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/transparent"
2020-09-15 07:28:34 +00:00
android:layout_marginStart="12dp"/>
2017-10-18 11:19:10 +00:00
</LinearLayout>
<LinearLayout
2017-10-17 19:23:06 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-18 11:19:10 +00:00
android:gravity="center_vertical">
<RadioButton
android:id="@+id/distributeTaskButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/distribute_task"/>
<ImageButton
android:id="@+id/distributeTaskHelpButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/transparent"
2020-09-15 07:28:34 +00:00
android:layout_marginStart="12dp"/>
2017-10-18 11:19:10 +00:00
</LinearLayout>
</LinearLayout>
2017-10-17 17:18:34 +00:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
2020-09-04 16:17:34 +00:00
android:background="@color/offset_background"
2017-10-17 17:18:34 +00:00
android:layout_marginBottom="20dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="@dimen/content_border"
android:layout_marginEnd="@dimen/content_border"
2017-10-17 17:18:34 +00:00
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/stat_guide"
style="@style/Subheader2"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/character_build"
style="@style/Subheader3"
android:layout_marginBottom="8dp"
android:layout_marginTop="18dp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_primary"/>
2017-10-17 17:18:34 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/character_build_description"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"/>
2017-10-17 17:18:34 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/strength"
style="@style/Subheader3"
android:layout_marginBottom="8dp"
android:layout_marginTop="28dp"
android:textColor="@color/red_10"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/strength_description"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"/>
2017-10-17 17:18:34 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/intelligence"
style="@style/Subheader3"
android:layout_marginBottom="8dp"
android:layout_marginTop="28dp"
android:textColor="@color/blue_10"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/intelligence_description"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"/>
2017-10-17 17:18:34 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/constitution"
style="@style/Subheader3"
android:layout_marginBottom="8dp"
android:layout_marginTop="28dp"
android:textColor="@color/yellow_10"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/constitution_description"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"/>
2017-10-17 17:18:34 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/perception"
style="@style/Subheader3"
android:layout_marginBottom="8dp"
android:layout_marginTop="28dp"
2020-09-17 11:23:27 +00:00
android:textColor="@color/text_brand"/>
2017-10-17 17:18:34 +00:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/perception_description"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"
2017-10-17 17:18:34 +00:00
android:layout_marginBottom="28dp"/>
</LinearLayout>
2019-06-13 08:54:47 +00:00
</LinearLayout>
2025-03-05 09:38:37 +00:00
</com.habitrpg.android.habitica.ui.views.HabiticaScrollView>