Makes radio buttons suck less.
Styles the advantage picker and proficiency picker. Makes the saving throws screen nicer.
This commit is contained in:
5
app/src/main/res/color/radio_button_text.xml
Normal file
5
app/src/main/res/color/radio_button_text.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:color="@color/colorOnPrimary" android:state_checked="true"/>
|
||||||
|
<item android:color="@color/colorPrimary" android:state_checked="false"/>
|
||||||
|
</selector>
|
||||||
6
app/src/main/res/drawable/radio_button_checked.xml
Normal file
6
app/src/main/res/drawable/radio_button_checked.xml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="@color/colorPrimary" />
|
||||||
|
<corners android:radius="@dimen/corner_radius" />
|
||||||
|
</shape>
|
||||||
5
app/src/main/res/drawable/radio_button_selector.xml
Normal file
5
app/src/main/res/drawable/radio_button_selector.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:drawable="@drawable/radio_button_checked" android:state_checked="true" />
|
||||||
|
<item android:drawable="@drawable/radio_button_unchecked" android:state_checked="false" />
|
||||||
|
</selector>
|
||||||
6
app/src/main/res/drawable/radio_button_unchecked.xml
Normal file
6
app/src/main/res/drawable/radio_button_unchecked.xml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="@android:color/background_light" />
|
||||||
|
<corners android:radius="@dimen/corner_radius" />
|
||||||
|
<stroke android:color="@color/colorPrimary" android:width="1dp"/>
|
||||||
|
</shape>
|
||||||
@@ -6,16 +6,17 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="@dimen/text_margin"
|
android:layout_margin="@dimen/text_margin"
|
||||||
tools:context=".ui.components.AdvantagePicker">
|
tools:context=".ui.components.AdvantagePicker">
|
||||||
<!-- // TODO: style this control to look less awful by default -->
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/label"
|
android:id="@+id/label"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_normal"
|
||||||
|
android:layout_marginTop="@dimen/padding_small"
|
||||||
android:text="@string/label_advantage"
|
android:text="@string/label_advantage"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Medium"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
tools:text="Proficiency" />
|
|
||||||
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
android:id="@+id/group"
|
android:id="@+id/group"
|
||||||
@@ -29,21 +30,48 @@
|
|||||||
android:id="@+id/hasNoAdvantage"
|
android:id="@+id/hasNoAdvantage"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_small"
|
||||||
|
android:layout_marginVertical="@dimen/padding_normal"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/label_advantage_none" />
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="@dimen/padding_normal"
|
||||||
|
android:text="@string/label_advantage_none"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="true" />
|
||||||
|
|
||||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||||
android:id="@+id/hasAdvantage"
|
android:id="@+id/hasAdvantage"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_small"
|
||||||
|
android:layout_marginVertical="@dimen/padding_normal"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/label_advantage_advantage" />
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="@dimen/padding_normal"
|
||||||
|
android:text="@string/label_advantage_advantage"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="false" />
|
||||||
|
|
||||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||||
android:id="@+id/hasDisadvantage"
|
android:id="@+id/hasDisadvantage"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_small"
|
||||||
|
android:layout_marginVertical="@dimen/padding_normal"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/label_advantage_disadvantage" />
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="@dimen/padding_normal"
|
||||||
|
android:text="@string/label_advantage_disadvantage"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="false" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</merge>
|
</merge>
|
||||||
|
|||||||
78
app/src/main/res/layout/component_advantage_picker2.xml
Normal file
78
app/src/main/res/layout/component_advantage_picker2.xml
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
|
||||||
|
android:layout_margin="@dimen/text_margin"
|
||||||
|
tools:context=".ui.components.AdvantagePicker">
|
||||||
|
<!-- // TODO: style this control to look less awful by default -->
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/label"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_normal"
|
||||||
|
android:layout_marginTop="@dimen/padding_small"
|
||||||
|
android:text="@string/label_advantage"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<RadioGroup
|
||||||
|
android:id="@+id/group"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/label">
|
||||||
|
|
||||||
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||||
|
android:id="@+id/hasNoAdvantage"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="4dp"
|
||||||
|
android:layout_marginVertical="8dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:text="@string/label_advantage_none"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="true" />
|
||||||
|
|
||||||
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||||
|
android:id="@+id/hasAdvantage"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="4dp"
|
||||||
|
android:layout_marginVertical="8dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:text="@string/label_advantage_advantage"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="false" />
|
||||||
|
|
||||||
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||||
|
android:id="@+id/hasDisadvantage"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="4dp"
|
||||||
|
android:layout_marginVertical="8dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:text="@string/label_advantage_disadvantage"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="false" />
|
||||||
|
</RadioGroup>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -6,16 +6,17 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="@dimen/text_margin"
|
android:layout_margin="@dimen/text_margin"
|
||||||
tools:context=".ui.components.ProficiencyPicker">
|
tools:context=".ui.components.ProficiencyPicker">
|
||||||
<!-- // TODO: style this control to look less awful by default -->
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/label"
|
android:id="@+id/label"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_normal"
|
||||||
|
android:layout_marginTop="@dimen/padding_small"
|
||||||
android:text="@string/label_proficiency"
|
android:text="@string/label_proficiency"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Medium"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
tools:text="Proficiency" />
|
|
||||||
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
android:id="@+id/group"
|
android:id="@+id/group"
|
||||||
@@ -29,21 +30,48 @@
|
|||||||
android:id="@+id/none"
|
android:id="@+id/none"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_small"
|
||||||
|
android:layout_marginVertical="@dimen/padding_normal"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/label_proficiency_none" />
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="@dimen/padding_normal"
|
||||||
|
android:text="@string/label_proficiency_none"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="true" />
|
||||||
|
|
||||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||||
android:id="@+id/proficient"
|
android:id="@+id/proficient"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_small"
|
||||||
|
android:layout_marginVertical="@dimen/padding_normal"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/label_proficiency_proficient" />
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="@dimen/padding_normal"
|
||||||
|
android:text="@string/label_proficiency_proficient"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="false" />
|
||||||
|
|
||||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||||
android:id="@+id/expertise"
|
android:id="@+id/expertise"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/padding_small"
|
||||||
|
android:layout_marginVertical="@dimen/padding_normal"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/label_proficiency_expertise" />
|
android:background="@drawable/radio_button_selector"
|
||||||
|
android:button="@android:color/transparent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="@dimen/padding_normal"
|
||||||
|
android:text="@string/label_proficiency_expertise"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Button"
|
||||||
|
android:textColor="@color/radio_button_text"
|
||||||
|
tools:checked="false" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</merge>
|
</merge>
|
||||||
|
|||||||
@@ -3,18 +3,29 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
|
||||||
tools:context=".ui.editmonster.EditSavingThrowsFragment">
|
tools:context=".ui.editmonster.EditSavingThrowsFragment">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:divider="?android:attr/dividerVertical"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:showDividers="middle">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/padding_large"
|
||||||
|
android:layout_marginBottom="@dimen/padding_normal"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="start"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/label_strength" />
|
android:text="@string/label_strength"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Title" />
|
||||||
|
|
||||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||||
android:id="@+id/strengthProficiency"
|
android:id="@+id/strengthProficiency"
|
||||||
@@ -25,12 +36,21 @@
|
|||||||
android:id="@+id/strengthAdvantage"
|
android:id="@+id/strengthAdvantage"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/padding_large"
|
||||||
|
android:layout_marginBottom="@dimen/padding_normal"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="start"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/label_dexterity" />
|
android:text="@string/label_dexterity"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Title" />
|
||||||
|
|
||||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||||
android:id="@+id/dexterityProficiency"
|
android:id="@+id/dexterityProficiency"
|
||||||
@@ -42,11 +62,21 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/padding_large"
|
||||||
|
android:layout_marginBottom="@dimen/padding_normal"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="start"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/label_constitution" />
|
android:text="@string/label_constitution"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Title" />
|
||||||
|
|
||||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||||
android:id="@+id/constitutionProficiency"
|
android:id="@+id/constitutionProficiency"
|
||||||
@@ -58,11 +88,21 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/padding_large"
|
||||||
|
android:layout_marginBottom="@dimen/padding_normal"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="start"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/label_intelligence" />
|
android:text="@string/label_intelligence"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Title" />
|
||||||
|
|
||||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||||
android:id="@+id/intelligenceProficiency"
|
android:id="@+id/intelligenceProficiency"
|
||||||
@@ -74,11 +114,21 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/padding_large"
|
||||||
|
android:layout_marginBottom="@dimen/padding_normal"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="start"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/label_wisdom" />
|
android:text="@string/label_wisdom"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Title" />
|
||||||
|
|
||||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||||
android:id="@+id/wisdomProficiency"
|
android:id="@+id/wisdomProficiency"
|
||||||
@@ -90,11 +140,21 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/padding_large"
|
||||||
|
android:layout_marginBottom="@dimen/padding_normal"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="start"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/label_charisma" />
|
android:text="@string/label_charisma"
|
||||||
|
android:textAppearance="@android:style/TextAppearance.Material.Title" />
|
||||||
|
|
||||||
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
<com.majinnaibu.monstercards.ui.components.ProficiencyPicker
|
||||||
android:id="@+id/charismaProficiency"
|
android:id="@+id/charismaProficiency"
|
||||||
@@ -105,7 +165,7 @@
|
|||||||
android:id="@+id/charismaAdvantage"
|
android:id="@+id/charismaAdvantage"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
@@ -1,8 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorPrimary">#9B2818</color>
|
<!-- From palette here https://material.io/resources/color/#!/?view.left=1&view.right=1&primary.color=9b2818&secondary.color=ea7e00 -->
|
||||||
<color name="colorPrimaryDark">#661A10</color>
|
<color name="colorPrimary">#9b2818</color>
|
||||||
<!-- <color name="colorAccent">#188B9B</color>-->
|
<color name="colorPrimaryLight">#d25941</color>
|
||||||
|
<color name="colorPrimaryDark">#660000</color>
|
||||||
|
<color name="colorSecondary">#ea7e00</color>
|
||||||
|
<color name="colorSecondaryLight">#ffae41</color>
|
||||||
|
<color name="colorSecondaryDark">#b15000</color>
|
||||||
|
<color name="colorOnPrimary">#ffffff</color>
|
||||||
|
<color name="colorOnSecondary">#000000</color>
|
||||||
|
<color name="colorOnLight">#ffffff</color>
|
||||||
|
<color name="colorOnDark">#000000</color>
|
||||||
|
|
||||||
<color name="colorAccent">#995500</color>
|
<color name="colorAccent">#995500</color>
|
||||||
|
|
||||||
<!-- fruit system colors -->
|
<!-- fruit system colors -->
|
||||||
|
|||||||
@@ -3,5 +3,9 @@
|
|||||||
<dimen name="text_margin">16dp</dimen>
|
<dimen name="text_margin">16dp</dimen>
|
||||||
<dimen name="fab_margin">16dp</dimen>
|
<dimen name="fab_margin">16dp</dimen>
|
||||||
<dimen name="text_h4_size">20sp</dimen>
|
<dimen name="text_h4_size">20sp</dimen>
|
||||||
|
<dimen name="corner_radius">4dp</dimen>
|
||||||
|
<dimen name="padding_small">4dp</dimen>
|
||||||
|
<dimen name="padding_normal">8dp</dimen>
|
||||||
|
<dimen name="padding_large">16dp</dimen>
|
||||||
|
<dimen name="padding_huge">32dp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
Reference in New Issue
Block a user