Makes more numeric fields Steppers. Sets titles for fragments. Sets focus on the first EditText on most edit pages. Makes Checkbox be a SwitchCompat Fixes monster list item view.
96 lines
3.9 KiB
XML
96 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ui.editmonster.EditBasicInfoFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.majinnaibu.monstercards.ui.components.Stepper
|
|
android:id="@+id/baseSpeed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
app:label="@string/label_base_speed"
|
|
app:maxValue="1000"
|
|
app:minValue="0"
|
|
app:stepAmount="5" />
|
|
|
|
<com.majinnaibu.monstercards.ui.components.Stepper
|
|
android:id="@+id/burrowSpeed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
app:label="@string/label_burrow_speed"
|
|
app:maxValue="1000"
|
|
app:minValue="0"
|
|
app:stepAmount="5" />
|
|
|
|
<com.majinnaibu.monstercards.ui.components.Stepper
|
|
android:id="@+id/climbSpeed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
app:label="@string/label_climb_speed"
|
|
app:maxValue="1000"
|
|
app:minValue="0"
|
|
app:stepAmount="5" />
|
|
|
|
<com.majinnaibu.monstercards.ui.components.Stepper
|
|
android:id="@+id/flySpeed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
app:label="@string/label_fly_speed"
|
|
app:maxValue="1000"
|
|
app:minValue="0"
|
|
app:stepAmount="5" />
|
|
|
|
<com.majinnaibu.monstercards.ui.components.Stepper
|
|
android:id="@+id/swimSpeed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
app:label="@string/label_swim_speed"
|
|
app:maxValue="1000"
|
|
app:minValue="0"
|
|
app:stepAmount="5" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/canHover"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_can_hover"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Medium" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/hasCustomSpeed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_has_custom_speed"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Medium" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/customSpeed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/label_custom_speed"
|
|
android:importantForAutofill="no"
|
|
android:inputType="text"
|
|
tools:text="John Doe" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|