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

236 lines
11 KiB
XML
Raw Normal View History

2017-10-17 17:18:34 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-11-06 15:11:02 +00:00
<androidx.core.widget.NestedScrollView
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"
2017-10-17 19:23:06 +00:00
xmlns:tools="http://schemas.android.com/tools"
2017-10-17 17:18:34 +00:00
android:scrollbarSize="3dp"
android:scrollbarThumbVertical="@color/scrollbarThumb"
2017-10-17 17:18:34 +00:00
android:scrollbars="vertical"
android:background="@color/white">
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"
android:scaleType="fitCenter"/>
<TextView
android:id="@+id/numberOfPointsTextView"
android:layout_width="wrap_content"
android:layout_height="36dp"
2017-10-17 19:23:06 +00:00
android:layout_marginLeft="12dp"
android:layout_marginRight="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"
android:scaleType="fitCenter"/>
</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"
app:titleBackgroundColor="@color/red_50"
2017-10-17 19:23:06 +00:00
app:statsColor="@color/red_10"
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"
app:titleBackgroundColor="@color/blue_50"
2017-10-17 19:23:06 +00:00
app:statsColor="@color/blue_10"
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"
app:titleBackgroundColor="@color/yellow_10"
2017-10-17 19:23:06 +00:00
app:statsColor="@color/yellow_5"
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"
app:titleBackgroundColor="@color/brand_300"
2017-10-17 19:23:06 +00:00
app:statsColor="@color/brand_300"
2017-10-17 17:18:34 +00:00
android:layout_marginBottom="12dp"/>
<Switch
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"
android:layout_marginLeft="@dimen/content_border"
2017-10-17 19:23:06 +00:00
android:layout_marginRight="@dimen/content_border"
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"
android:paddingLeft="@dimen/content_border"
android:paddingRight="@dimen/content_border"
android:background="@color/gray_700"
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"
android:layout_marginLeft="12dp"/>
</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"
android:layout_marginLeft="12dp"/>
</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"
android:layout_marginLeft="12dp"/>
</LinearLayout>
</LinearLayout>
2017-10-17 17:18:34 +00:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/gray_600"
android:layout_marginBottom="20dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/content_border"
android:layout_marginRight="@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/gray_10"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/character_build_description"
android:textColor="@color/gray_100"/>
<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/gray_100"/>
<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/gray_100"/>
<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/gray_100"/>
<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/brand_300"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/perception_description"
android:textColor="@color/gray_100"
android:layout_marginBottom="28dp"/>
</LinearLayout>
2019-06-13 08:54:47 +00:00
</LinearLayout>
2018-11-06 15:11:02 +00:00
</androidx.core.widget.NestedScrollView>