Cleans up fonts/margins on edit screens. Makes the EditMonsterViewModel shared between edit monster fragments.
190 lines
7.9 KiB
XML
190 lines
7.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">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:divider="?android:attr/dividerVertical"
|
|
android:dividerPadding="@dimen/text_margin"
|
|
android:orientation="vertical"
|
|
android:showDividers="middle"
|
|
tools:context=".ui.editmonster.EditMonsterFragment">
|
|
|
|
<TextView
|
|
android:id="@+id/basicInfo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_basic_info"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/armor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_armor"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/speed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_speed"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/abilityScores"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_ability_scores"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/savingThrows"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_saving_throws"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/skills"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_skills"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/conditionImmunities"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_condition_immunities"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/damageImmunities"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_damage_immunities"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/damageResistances"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_damage_resistances"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/damageVulnerabilities"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_damage_vulnerabilities"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/senses"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_senses"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/languages"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_languages"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/challengeRating"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_challenge_rating"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/abilities"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_abilities"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/actions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_actions"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/reactions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_reactions"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/legendaryActions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_legendary_actions"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/lairActions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_lair_actions"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/regionalActions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/text_margin"
|
|
android:text="@string/label_regional_actions"
|
|
android:textSize="@dimen/text_h4_size"
|
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|