|
@@ -0,0 +1,130 @@
|
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
+<android.support.constraint.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="match_parent">
|
|
|
|
|
+
|
|
|
|
|
+ <android.support.design.widget.AppBarLayout
|
|
|
|
|
+ android:id="@+id/app_bar_layout"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:theme="@style/AppBarTheme"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
+
|
|
|
|
|
+ <android.support.v7.widget.Toolbar
|
|
|
|
|
+ android:id="@+id/toolbar"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ app:title="@string/book_add_title" />
|
|
|
|
|
+
|
|
|
|
|
+ </android.support.design.widget.AppBarLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <android.support.design.widget.TextInputLayout
|
|
|
|
|
+ android:id="@+id/book_title_input"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="16dp"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/app_bar_layout">
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:hint="@string/book_hint_title"
|
|
|
|
|
+ android:inputType="textCapSentences"
|
|
|
|
|
+ tools:text="Два капитана" />
|
|
|
|
|
+
|
|
|
|
|
+ </android.support.design.widget.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <android.support.design.widget.TextInputLayout
|
|
|
|
|
+ android:id="@+id/book_author_input"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="16dp"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/book_title_input">
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:hint="@string/book_hint_author"
|
|
|
|
|
+ android:inputType="textCapWords"
|
|
|
|
|
+ tools:text="Вениамин Каверин" />
|
|
|
|
|
+
|
|
|
|
|
+ </android.support.design.widget.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <android.support.design.widget.TextInputLayout
|
|
|
|
|
+ android:id="@+id/book_year_input"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="16dp"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/book_month_input"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/book_author_input">
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:hint="@string/book_hint_year"
|
|
|
|
|
+ android:inputType="number"
|
|
|
|
|
+ tools:text="2012" />
|
|
|
|
|
+
|
|
|
|
|
+ </android.support.design.widget.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <android.support.design.widget.TextInputLayout
|
|
|
|
|
+ android:id="@+id/book_month_input"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="16dp"
|
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/book_year_input"
|
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/book_day_input"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/book_author_input">
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:hint="@string/book_hint_month"
|
|
|
|
|
+ android:inputType="number" />
|
|
|
|
|
+
|
|
|
|
|
+ </android.support.design.widget.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <android.support.design.widget.TextInputLayout
|
|
|
|
|
+ android:id="@+id/book_day_input"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="16dp"
|
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/book_month_input"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/book_author_input">
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:hint="@string/book_hint_day"
|
|
|
|
|
+ android:inputType="number" />
|
|
|
|
|
+
|
|
|
|
|
+ </android.support.design.widget.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <CheckBox
|
|
|
|
|
+ android:id="@+id/book_read_checkbox"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="16dp"
|
|
|
|
|
+ android:checked="true"
|
|
|
|
|
+ android:paddingEnd="8dp"
|
|
|
|
|
+ android:paddingStart="8dp"
|
|
|
|
|
+ android:text="@string/book_read_checkbox"
|
|
|
|
|
+ android:textSize="16sp"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/book_year_input" />
|
|
|
|
|
+
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_margin="16dp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/book_read_checkbox"
|
|
|
|
|
+ tools:ignore="ContentDescription"
|
|
|
|
|
+ tools:src="@color/colorAccent" />
|
|
|
|
|
+
|
|
|
|
|
+</android.support.constraint.ConstraintLayout>
|