Adds saving throws editor.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
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"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/text_margin"
|
||||
tools:context=".ui.components.Stepper">
|
||||
|
||||
|
||||
111
app/src/main/res/layout/fragment_edit_saving_throws.xml
Normal file
111
app/src/main/res/layout/fragment_edit_saving_throws.xml
Normal file
@@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.editmonster.EditSavingThrowsFragment">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:text="@string/label_strength" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||
android:id="@+id/strengthProficiency"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.AdvantagePicker
|
||||
android:id="@+id/strengthAdvantage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:text="@string/label_dexterity" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||
android:id="@+id/dexterityProficiency"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.AdvantagePicker
|
||||
android:id="@+id/dexterityAdvantage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:text="@string/label_constitution" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||
android:id="@+id/constitutionProficiency"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.AdvantagePicker
|
||||
android:id="@+id/constitutionAdvantage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:text="@string/label_intelligence" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||
android:id="@+id/intelligenceProficiency"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.AdvantagePicker
|
||||
android:id="@+id/intelligenceAdvantage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:text="@string/label_wisdom" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||
android:id="@+id/wisdomProficiency"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.AdvantagePicker
|
||||
android:id="@+id/wisdomAdvantage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:text="@string/label_charisma" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||
android:id="@+id/charismaProficiency"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.majinnaibu.monstercards.ui.components.AdvantagePicker
|
||||
android:id="@+id/charismaAdvantage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
@@ -84,6 +84,9 @@
|
||||
<action
|
||||
android:id="@+id/action_editMonsterFragment_to_editAbilityScoresFragment"
|
||||
app:destination="@id/editAbilityScoresFragment" />
|
||||
<action
|
||||
android:id="@+id/action_editMonsterFragment_to_editSavingThrowsFragment"
|
||||
app:destination="@id/editSavingThrowsFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/editBasicInfoFragment"
|
||||
@@ -104,6 +107,11 @@
|
||||
android:id="@+id/editAbilityScoresFragment"
|
||||
android:name="com.majinnaibu.monstercards.ui.editmonster.EditAbilityScoresFragment"
|
||||
android:label="EditAbilityScoresFragment" />
|
||||
<fragment
|
||||
android:id="@+id/editSavingThrowsFragment"
|
||||
android:name="com.majinnaibu.monstercards.ui.editmonster.EditSavingThrowsFragment"
|
||||
android:label="fragment_edit_saving_throws"
|
||||
tools:layout="@layout/fragment_edit_saving_throws" />
|
||||
</navigation>
|
||||
|
||||
</navigation>
|
||||
@@ -35,6 +35,7 @@
|
||||
<string name="label_damage_vulnerabilities">Damage Vulnerabilities</string>
|
||||
<string name="label_decrement_field">-</string>
|
||||
<string name="label_dexterity">Dexterity</string>
|
||||
<string name="label_fly_speed">Fly Speed</string>
|
||||
<string name="label_has_custom_hp">Has Custom HP</string>
|
||||
<string name="label_has_custom_speed">Has Custom Speed</string>
|
||||
<string name="label_has_a_shield">Has a Shield</string>
|
||||
@@ -61,6 +62,7 @@
|
||||
<string name="label_speed">Speed</string>
|
||||
<string name="label_strength">Strength</string>
|
||||
<string name="label_subtype">Subtype</string>
|
||||
<string name="label_swim_speed">Swim Speed</string>
|
||||
<string name="label_type">Type</string>
|
||||
<string name="label_wisdom">Wisdom</string>
|
||||
<string name="section_divider">section divider</string>
|
||||
@@ -73,7 +75,4 @@
|
||||
<string name="title_library">Library</string>
|
||||
<string name="title_search">Search</string>
|
||||
<string name="wisdom_abbreviation">WIS</string>
|
||||
<string name="label_fly_speed">Fly Speed</string>
|
||||
<string name="label_swim_speed">Swim Speed</string>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user