Adds armor class and section divider to monster cards.
This commit is contained in:
9
app/src/main/res/drawable/ic_section_divider.xml
Normal file
9
app/src/main/res/drawable/ic_section_divider.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="800.5dp"
|
||||
android:height="20.5dp"
|
||||
android:viewportWidth="800.5"
|
||||
android:viewportHeight="20.5">
|
||||
<path
|
||||
android:pathData="M0.5,0l-0.5,20.5l800.5,-20.5l-800,0z"
|
||||
android:fillColor="#9b2818"/>
|
||||
</vector>
|
||||
@@ -41,5 +41,33 @@
|
||||
app:layout_constraintTop_toBottomOf="@+id/name"
|
||||
tools:text="Tiny fey, neutral good" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/divider1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:contentDescription="@string/section_divider"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/ic_section_divider"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/meta" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/armor_class"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider1"
|
||||
tools:text="Armor Class 15" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
@@ -6,4 +6,5 @@
|
||||
<string name="title_library">Library</string>
|
||||
<string name="action_search">Search</string>
|
||||
<string name="label_search_query">Query</string>
|
||||
<string name="section_divider">section divider</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user