191 lines
7.2 KiB
XML
191 lines
7.2 KiB
XML
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".PlayerEditor">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:minHeight="?attr/actionBarSize"
|
|
android:background="@color/primary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
android:paddingBottom="@dimen/activity_vertical_margin">
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/firstLayout"
|
|
android:orientation="horizontal">
|
|
|
|
<EditText
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textPersonName|textCapWords"
|
|
android:layout_weight="0.5"
|
|
android:id="@+id/namePlayerEdit"
|
|
android:hint="@string/adventurer_name"
|
|
android:nextFocusDown="@+id/xpEdit"
|
|
android:nextFocusForward="@+id/xpEdit"/>
|
|
|
|
<EditText
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"
|
|
android:id="@+id/xpEdit"
|
|
android:hint="@string/xp"
|
|
android:layout_weight="1"
|
|
android:nextFocusDown="@+id/STR"
|
|
android:nextFocusForward="@+id/STR"
|
|
android:nextFocusLeft="@+id/STR"
|
|
android:nextFocusRight="@+id/STR"
|
|
android:nextFocusUp="@+id/STR"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:id="@+id/secondLayout"
|
|
android:layout_below="@+id/firstLayout">
|
|
|
|
<Spinner
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:id="@+id/classSpinner"
|
|
tools:listitem="@android:layout/simple_spinner_dropdown_item"
|
|
android:spinnerMode="dropdown" />
|
|
|
|
<Spinner
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:id="@+id/raceSpinner"
|
|
tools:listitem="@android:layout/simple_spinner_dropdown_item"
|
|
android:spinnerMode="dropdown" />
|
|
</LinearLayout>
|
|
|
|
<GridLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/secondLayout"
|
|
android:id="@+id/thirdLayout"
|
|
android:columnCount="3">
|
|
<EditText
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"
|
|
android:ems="3"
|
|
|
|
android:layout_row="0"
|
|
android:layout_column="0"
|
|
|
|
android:id="@+id/STR"
|
|
android:hint="@string/STR"
|
|
android:nextFocusDown="@+id/DEX"/>
|
|
|
|
<EditText
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"
|
|
android:ems="3"
|
|
|
|
android:layout_row="1"
|
|
android:layout_column="0"
|
|
|
|
android:id="@+id/CON"
|
|
android:hint="@string/CON"
|
|
android:nextFocusDown="@+id/INT" />
|
|
|
|
<EditText
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"
|
|
android:ems="3"
|
|
|
|
android:layout_row="2"
|
|
android:layout_column="0"
|
|
|
|
android:id="@+id/DEX"
|
|
android:hint="@string/DEX"
|
|
android:nextFocusDown="@+id/WIS"/>
|
|
|
|
<EditText
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"
|
|
android:ems="3"
|
|
|
|
android:layout_row="0"
|
|
android:layout_column="1"
|
|
|
|
android:id="@+id/INT"
|
|
android:hint="@string/INT"
|
|
android:nextFocusDown="@+id/CHA"/>
|
|
|
|
<EditText
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"
|
|
android:ems="3"
|
|
|
|
android:layout_row="1"
|
|
android:layout_column="1"
|
|
|
|
android:id="@+id/WIS"
|
|
android:hint="@string/WIS"
|
|
android:nextFocusDown="@+id/CON"/>
|
|
|
|
<EditText
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"
|
|
android:ems="3"
|
|
android:imeOptions="actionDone"
|
|
|
|
android:layout_row="2"
|
|
android:layout_column="1"
|
|
|
|
android:id="@+id/CHA"
|
|
android:hint="@string/CHA"/>
|
|
</GridLayout>
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Defense"
|
|
android:id="@+id/defenseButton"
|
|
android:layout_below="@+id/secondLayout"
|
|
android:layout_toRightOf="@+id/thirdLayout"
|
|
android:layout_alignRight="@+id/secondLayout"
|
|
android:layout_alignEnd="@+id/secondLayout"
|
|
android:onClick="onDefenseClick" />
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Abilities"
|
|
android:id="@+id/abilityButton"
|
|
android:layout_below="@+id/defenseButton"
|
|
android:layout_toRightOf="@+id/thirdLayout"
|
|
android:layout_alignRight="@+id/defenseButton"
|
|
android:layout_alignEnd="@+id/defenseButton"
|
|
android:onClick="onAbilityClick"
|
|
android:visibility="gone" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout> |