| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout 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:focusableInTouchMode="true"
- android:orientation="vertical"
- tools:ignore="Autofill">
- <include layout="@layout/default_app_bar" />
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:animateLayoutChanges="true"
- android:focusableInTouchMode="true">
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/book_title_input"
- style="@style/TextInputLayoutStyle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:hint="@string/book.hint.title"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@id/bookImage"
- app:layout_constraintTop_toTopOf="parent">
- <EditText
- android:id="@+id/titleEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="textCapSentences"
- tools:ignore="LabelFor"
- tools:text="Два капитана" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/book_author_input"
- style="@style/TextInputLayoutStyle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:hint="@string/book.hint.author"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@id/bookImage"
- app:layout_constraintTop_toBottomOf="@id/book_title_input">
- <EditText
- android:id="@+id/authorEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="textCapWords"
- tools:ignore="LabelFor"
- tools:text="Вениамин Каверин" />
- </com.google.android.material.textfield.TextInputLayout>
- <ImageView
- android:id="@+id/bookImage"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="@id/book_author_input"
- app:layout_constraintDimensionRatio="3:4"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="@id/book_title_input"
- tools:ignore="ContentDescription"
- tools:src="@drawable/rectangle_placeholder_background"
- tools:visibility="visible" />
- <TextView
- android:id="@+id/progressText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:gravity="center_horizontal"
- app:layout_constraintTop_toBottomOf="@id/book_author_input"
- tools:text="20%" />
- <androidx.appcompat.widget.AppCompatSeekBar
- android:id="@+id/progressSeekBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:padding="16dp"
- android:progress="0"
- app:layout_constraintTop_toBottomOf="@id/book_author_input"
- tools:progress="20" />
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/bookYearInput"
- style="@style/TextInputLayoutStyle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:hint="@string/book.hint.year"
- app:layout_constraintHorizontal_chainStyle="spread_inside"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/bookMonthInput"
- app:layout_constraintTop_toBottomOf="@id/progressSeekBar">
- <EditText
- android:id="@+id/yearEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="number"
- tools:ignore="LabelFor"
- tools:text="2012" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/bookMonthInput"
- style="@style/TextInputLayoutStyle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:hint="@string/book.hint.month"
- app:layout_constraintLeft_toRightOf="@id/bookYearInput"
- app:layout_constraintRight_toLeftOf="@+id/bookDayInput"
- app:layout_constraintTop_toBottomOf="@id/progressSeekBar">
- <EditText
- android:id="@+id/monthEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="number"
- tools:ignore="LabelFor" />
- </com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/bookDayInput"
- style="@style/TextInputLayoutStyle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:hint="@string/book.hint.day"
- app:layout_constraintLeft_toRightOf="@id/bookMonthInput"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@id/progressSeekBar">
- <EditText
- android:id="@+id/dayEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="number"
- tools:ignore="LabelFor" />
- </com.google.android.material.textfield.TextInputLayout>
- <androidx.appcompat.widget.AppCompatEditText
- android:id="@+id/notesTextArea"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="16dp"
- android:drawablePadding="16dp"
- android:hint="@string/book.hint.notes"
- android:inputType="textCapSentences|textMultiLine"
- android:minLines="2"
- android:padding="16dp"
- app:background="@drawable/text_area_background"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toBottomOf="@id/bookYearInput"
- tools:text="Неистово плюсую" />
- <androidx.constraintlayout.widget.Group
- android:id="@+id/bookDateInputGroup"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:visibility="gone"
- app:constraint_referenced_ids="bookYearInput,bookMonthInput,bookDayInput"
- tools:visibility="visible" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </ScrollView>
- </LinearLayout>
|