Better colors display, edition and deletion
This commit is contained in:
parent
2fc2ff61ba
commit
943d98f867
11 changed files with 191 additions and 115 deletions
|
@ -5,6 +5,8 @@
|
|||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!--TODO: organize the input similarly to the output-->
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:minHeight="?attr/actionBarSize"
|
||||
|
@ -28,7 +30,6 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/nameEdit"
|
||||
android:capitalize="words"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
|
@ -40,7 +41,6 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/keywordsEdit"
|
||||
android:capitalize="words"
|
||||
android:layout_below="@+id/nameEdit"
|
||||
android:layout_alignRight="@+id/nameEdit"
|
||||
android:layout_alignEnd="@+id/nameEdit"
|
||||
|
@ -190,7 +190,6 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/objectiveEdit"
|
||||
android:capitalize="words"
|
||||
android:hint="@string/objectiveHint"
|
||||
android:layout_below="@+id/actionTypeSpinner"
|
||||
android:layout_alignParentRight="true"
|
||||
|
|
|
@ -192,7 +192,7 @@
|
|||
android:id="@+id/listSelectButton"
|
||||
android:textColor="@color/primary"
|
||||
android:background="@android:color/transparent"
|
||||
tools:text="Go to abilities"/>
|
||||
android:text="Go to abilities"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/at_will"
|
||||
android:background="@color/encounter"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingLeft="10dp"
|
||||
|
@ -160,34 +160,44 @@
|
|||
android:layout_below="@+id/impact"
|
||||
tools:text="If you are reading this the description has been displayed"
|
||||
android:layout_alignParentLeft="true"/>
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Use"
|
||||
android:background="@android:color/transparent"
|
||||
android:textStyle="bold"
|
||||
android:id="@+id/useButton"
|
||||
android:layout_below="@+id/linearLayout"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true" />
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/otherText">
|
||||
android:layout_below="@+id/otherText"
|
||||
android:id="@+id/linearLayout">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Use"
|
||||
android:background="@android:color/transparent"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/useButton" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/delete"
|
||||
android:layout_weight="1"
|
||||
android:background="@android:color/transparent"
|
||||
android:id="@+id/deleteButton" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/edit"
|
||||
android:visibility="gone"
|
||||
android:layout_weight="1"
|
||||
android:textStyle="bold"
|
||||
android:background="@android:color/transparent"
|
||||
android:id="@+id/editButton" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/delete"
|
||||
android:textColor="#ff0000"
|
||||
android:visibility="gone"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:background="@android:color/transparent"
|
||||
android:id="@+id/deleteButton" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
|
@ -1,14 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
tools:background="@color/at_will">
|
||||
|
||||
<TextView
|
||||
tools:text="Happiness"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@android:color/white"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:id="@+id/name" />
|
||||
|
||||
|
@ -18,6 +21,7 @@
|
|||
tools:text="Melee 1"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:id="@+id/extra"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_below="@+id/name"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true" />
|
||||
|
@ -28,6 +32,7 @@
|
|||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:id="@+id/keywords"
|
||||
tools:text="(fire, explosion)"
|
||||
android:textColor="@android:color/white"
|
||||
android:paddingLeft="10dp"
|
||||
android:layout_alignBottom="@id/extra"
|
||||
android:layout_toRightOf="@+id/extra"
|
||||
|
@ -38,6 +43,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:id="@+id/frequency"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_alignBottom="@+id/name"
|
||||
android:layout_toRightOf="@+id/name"
|
||||
android:layout_toEndOf="@+id/name"
|
||||
|
|
Reference in a new issue