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

192 lines
8.7 KiB
XML
Raw Normal View History

2017-10-17 17:18:34 +00:00
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView
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/md_grey_500"
android:scrollbars="vertical"
android:background="@color/white">
<LinearLayout
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
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<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="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_marginBottom="24dp"/>
<ImageView
android:id="@+id/rightSparklesView"
android:layout_width="77dp"
android:layout_height="24dp"
android:scaleType="fitCenter"/>
</LinearLayout>
2017-10-17 17:18:34 +00:00
<com.habitrpg.android.habitica.ui.views.StatsView
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"/>
<com.habitrpg.android.habitica.ui.views.StatsView
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"/>
<com.habitrpg.android.habitica.ui.views.StatsView
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"/>
<com.habitrpg.android.habitica.ui.views.StatsView
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"/>
<RadioGroup
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"
android:paddingBottom="16dp">
<RadioButton
android:id="@+id/distributeEvenlyButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/distribute_evenly"
android:layout_marginBottom="4dp"/>
<RadioButton
android:id="@+id/distributeClassButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/distribute_class"
android:layout_marginBottom="4dp"/>
<RadioButton
android:id="@+id/distributeTaskButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/distribute_task"/>
</RadioGroup>
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>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>