mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
237 lines
11 KiB
XML
237 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/nested_scroll_view"
|
|
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"
|
|
android:scrollbars="vertical">
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="20dp">
|
|
<LinearLayout
|
|
android:id="@+id/statsAllocationButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginBottom="18dp">
|
|
<ImageView
|
|
android:id="@+id/leftSparklesView"
|
|
android:layout_width="77dp"
|
|
android:layout_height="24dp"
|
|
android:scaleType="fitCenter"
|
|
android:contentDescription="@null" />
|
|
<TextView
|
|
android:id="@+id/numberOfPointsTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="36dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:gravity="center"/>
|
|
<ImageView
|
|
android:id="@+id/rightSparklesView"
|
|
android:layout_width="77dp"
|
|
android:layout_height="24dp"
|
|
android:scaleType="fitCenter"
|
|
android:contentDescription="@null" />
|
|
</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"/>
|
|
<com.habitrpg.android.habitica.ui.views.stats.StatsView
|
|
android:id="@+id/strengthStatsView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:statsTitle="@string/strength"
|
|
app:titleBackgroundColor="@color/background_red"
|
|
app:statsColor="@color/text_red"
|
|
android:layout_marginBottom="12dp"/>
|
|
<com.habitrpg.android.habitica.ui.views.stats.StatsView
|
|
android:id="@+id/intelligenceStatsView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:statsTitle="@string/intelligence"
|
|
app:titleBackgroundColor="@color/background_blue"
|
|
app:statsColor="@color/text_blue"
|
|
android:layout_marginBottom="12dp"/>
|
|
<com.habitrpg.android.habitica.ui.views.stats.StatsView
|
|
android:id="@+id/constitutionStatsView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:statsTitle="@string/constitution"
|
|
app:titleBackgroundColor="@color/background_yellow"
|
|
app:statsColor="@color/text_yellow"
|
|
android:layout_marginBottom="12dp"/>
|
|
<com.habitrpg.android.habitica.ui.views.stats.StatsView
|
|
android:id="@+id/perceptionStatsView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:statsTitle="@string/perception"
|
|
app:titleBackgroundColor="@color/background_brand"
|
|
app:statsColor="@color/text_brand"
|
|
android:layout_marginBottom="12dp"/>
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/automaticAllocationSwitch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/auto_allocate_points"
|
|
android:layout_marginStart="@dimen/content_border"
|
|
android:layout_marginEnd="@dimen/content_border"
|
|
android:layout_marginBottom="20dp"/>
|
|
<LinearLayout
|
|
android:id="@+id/autoAllocationModeWrapper"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/content_border"
|
|
android:paddingEnd="@dimen/content_border"
|
|
android:background="?attr/colorWindowBackground"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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"
|
|
android:layout_marginStart="12dp"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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"
|
|
android:layout_marginStart="12dp"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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"
|
|
android:layout_marginStart="12dp"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/offset_background"
|
|
android:layout_marginBottom="20dp"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/content_border"
|
|
android:layout_marginEnd="@dimen/content_border"
|
|
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"
|
|
android:textColor="@color/text_primary"/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/character_build_description"
|
|
android:textColor="@color/text_secondary"/>
|
|
<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"
|
|
android:textColor="@color/text_secondary"/>
|
|
<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"
|
|
android:textColor="@color/text_secondary"/>
|
|
<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"
|
|
android:textColor="@color/text_secondary"/>
|
|
<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"
|
|
android:textColor="@color/text_brand"/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/perception_description"
|
|
android:textColor="@color/text_secondary"
|
|
android:layout_marginBottom="28dp"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|