Adds top level items to the edit monster view.
This commit is contained in:
10
app/src/main/res/drawable/ic_chevron_right_24.xml
Normal file
10
app/src/main/res/drawable/ic_chevron_right_24.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24"
|
||||||
|
android:tint="?attr/colorControlNormal">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M10,6L8.59,7.41 13.17,12l-4.58,4.59L10,18l6,-6z"/>
|
||||||
|
</vector>
|
||||||
@@ -1,20 +1,171 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/frameLayout"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/list"
|
||||||
|
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">
|
tools:context=".ui.editmonster.EditMonsterFragment">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView"
|
android:id="@+id/basicInfo"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="wrap_content"
|
||||||
android:text="Edit Monster"
|
android:layout_margin="@dimen/text_margin"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:text="@string/label_basic_info"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
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"
|
||||||
|
app:drawableEndCompat="@drawable/ic_chevron_right_24" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|||||||
@@ -60,8 +60,8 @@
|
|||||||
<fragment
|
<fragment
|
||||||
android:id="@+id/editMonsterFragment"
|
android:id="@+id/editMonsterFragment"
|
||||||
android:name="com.majinnaibu.monstercards.ui.editmonster.EditMonsterFragment"
|
android:name="com.majinnaibu.monstercards.ui.editmonster.EditMonsterFragment"
|
||||||
android:label="fragment_edit_monster"
|
android:label="Edit Monster"
|
||||||
tools:layout="@layout/fragment_edit_monster" >
|
tools:layout="@layout/fragment_edit_monster">
|
||||||
<argument
|
<argument
|
||||||
android:name="monster_id"
|
android:name="monster_id"
|
||||||
app:argType="string" />
|
app:argType="string" />
|
||||||
|
|||||||
@@ -15,4 +15,23 @@
|
|||||||
<string name="wisdom_abbreviation">WIS</string>
|
<string name="wisdom_abbreviation">WIS</string>
|
||||||
<string name="action_add_monster">Add monster</string>
|
<string name="action_add_monster">Add monster</string>
|
||||||
<string name="action_edit">Edit</string>
|
<string name="action_edit">Edit</string>
|
||||||
|
<string name="label_basic_info">Basic Info</string>
|
||||||
|
<string name="label_armor">Armor</string>
|
||||||
|
<string name="label_speed">Speed</string>
|
||||||
|
<string name="label_ability_scores">Ability Scores</string>
|
||||||
|
<string name="label_saving_throws">Saving Throws</string>
|
||||||
|
<string name="label_skills">Skills</string>
|
||||||
|
<string name="label_condition_immunities">Condition Immunities</string>
|
||||||
|
<string name="label_damage_immunities">Damage Immunities</string>
|
||||||
|
<string name="label_damage_resistances">Damage Resistances</string>
|
||||||
|
<string name="label_damage_vulnerabilities">Damage Vulnerabilities</string>
|
||||||
|
<string name="label_senses">Senses</string>
|
||||||
|
<string name="label_languages">Languages</string>
|
||||||
|
<string name="label_challenge_rating">Challenge Rating</string>
|
||||||
|
<string name="label_abilities">Abilities</string>
|
||||||
|
<string name="label_actions">Actions</string>
|
||||||
|
<string name="label_reactions">Reactions</string>
|
||||||
|
<string name="label_legendary_actions">Legendary Actions</string>
|
||||||
|
<string name="label_lair_actions">Lair Actions</string>
|
||||||
|
<string name="label_regional_actions">Regional Actions</string>
|
||||||
</resources>
|
</resources>
|
||||||
Reference in New Issue
Block a user