|
|
@@ -12,7 +12,56 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
app:title="@string/book_info_edit" />
|
|
|
|
|
|
- <ScrollView
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="5dp">
|
|
|
+
|
|
|
+ <io.legado.app.ui.widget.image.CoverImageView
|
|
|
+ android:id="@+id/iv_cover"
|
|
|
+ android:layout_width="90dp"
|
|
|
+ android:layout_height="126dp"
|
|
|
+ android:contentDescription="@string/img_cover"
|
|
|
+ android:scaleType="centerCrop"
|
|
|
+ android:src="@drawable/image_cover_default" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="5dp">
|
|
|
+
|
|
|
+ <io.legado.app.ui.widget.text.TextInputLayout
|
|
|
+ android:id="@+id/til_book_name"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:hint="@string/book_name">
|
|
|
+
|
|
|
+ <io.legado.app.lib.theme.view.ThemeEditText
|
|
|
+ android:id="@+id/tie_book_name"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:singleLine="true" />
|
|
|
+ </io.legado.app.ui.widget.text.TextInputLayout>
|
|
|
+
|
|
|
+ <io.legado.app.ui.widget.text.TextInputLayout
|
|
|
+ android:id="@+id/til_book_author"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:hint="@string/author">
|
|
|
+
|
|
|
+ <io.legado.app.lib.theme.view.ThemeEditText
|
|
|
+ android:id="@+id/tie_book_author"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:singleLine="true" />
|
|
|
+ </io.legado.app.ui.widget.text.TextInputLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <androidx.core.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
@@ -21,54 +70,27 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
-
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="horizontal"
|
|
|
- android:padding="5dp">
|
|
|
+ android:layout_gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/book_type"
|
|
|
+ android:layout_marginLeft="12dp"
|
|
|
+ android:layout_marginRight="3dp"
|
|
|
+ tools:ignore="RtlHardcoded" />
|
|
|
|
|
|
- <io.legado.app.ui.widget.image.CoverImageView
|
|
|
- android:id="@+id/iv_cover"
|
|
|
- android:layout_width="90dp"
|
|
|
- android:layout_height="126dp"
|
|
|
- android:contentDescription="@string/img_cover"
|
|
|
- android:scaleType="centerCrop"
|
|
|
- android:src="@drawable/image_cover_default" />
|
|
|
+ <androidx.appcompat.widget.AppCompatSpinner
|
|
|
+ android:id="@+id/sp_type"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:entries="@array/book_type"
|
|
|
+ app:theme="@style/Spinner" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- android:padding="5dp">
|
|
|
-
|
|
|
- <io.legado.app.ui.widget.text.TextInputLayout
|
|
|
- android:id="@+id/til_book_name"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:hint="@string/book_name">
|
|
|
-
|
|
|
- <io.legado.app.lib.theme.view.ThemeEditText
|
|
|
- android:id="@+id/tie_book_name"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:singleLine="true" />
|
|
|
- </io.legado.app.ui.widget.text.TextInputLayout>
|
|
|
-
|
|
|
- <io.legado.app.ui.widget.text.TextInputLayout
|
|
|
- android:id="@+id/til_book_author"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:hint="@string/author">
|
|
|
-
|
|
|
- <io.legado.app.lib.theme.view.ThemeEditText
|
|
|
- android:id="@+id/tie_book_author"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:singleLine="true" />
|
|
|
- </io.legado.app.ui.widget.text.TextInputLayout>
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
<io.legado.app.ui.widget.text.TextInputLayout
|
|
|
@@ -132,6 +154,6 @@
|
|
|
</io.legado.app.ui.widget.text.TextInputLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
- </ScrollView>
|
|
|
+ </androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
</LinearLayout>
|