更新界面

This commit is contained in:
HapeLee committed 2025-07-02 04:08:42 +08:00
1 parent 3908ff7cf2
commit ea36e85899
11 files changed
+197 -226

No files matched your search

@@ -12,50 +12,55 @@
android:layout_height="wrap_content"
app:title="@string/book_info_edit" />
<LinearLayout
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal"
android:layout_marginHorizontal="16dp"
android:layout_marginVertical="8dp">
<io.legato.kazusa.ui.widget.image.CoverImageView
android:id="@+id/iv_cover"
android:layout_width="90dp"
android:layout_height="130dp"
android:contentDescription="@string/img_cover"
android:scaleType="centerCrop"
android:layout_marginBottom="8dp"
android:src="@drawable/image_cover_default" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_book_name"
android:layout_height="0dp"
android:layout_weight="1"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:hint="@string/book_name">
android:orientation="vertical"
android:gravity="center_horizontal"
android:layout_marginHorizontal="16dp"
android:layout_marginVertical="8dp">
<io.legato.kazusa.lib.theme.view.ThemeEditText
android:id="@+id/tie_book_name"
<io.legato.kazusa.ui.widget.image.CoverImageView
android:id="@+id/iv_cover"
android:layout_width="90dp"
android:layout_height="130dp"
android:contentDescription="@string/img_cover"
android:scaleType="centerCrop"
android:layout_marginBottom="8dp"
android:src="@drawable/image_cover_default" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_book_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true" />
</com.google.android.material.textfield.TextInputLayout>
android:layout_marginBottom="12dp"
android:hint="@string/book_name">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_book_author"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:hint="@string/author">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/tie_book_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true" />
</com.google.android.material.textfield.TextInputLayout>
<io.legato.kazusa.lib.theme.view.ThemeEditText
android:id="@+id/tie_book_author"
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_book_author"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true" />
</com.google.android.material.textfield.TextInputLayout>
android:layout_marginBottom="16dp"
android:hint="@string/author">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/tie_book_author"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true" />
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
@@ -85,7 +90,7 @@
android:layout_marginBottom="12dp"
android:hint="@string/cover_path">
<io.legato.kazusa.lib.theme.view.ThemeEditText
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/tie_cover_url"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
@@ -133,11 +138,12 @@
android:layout_height="wrap_content"
android:hint="@string/book_intro">
<io.legato.kazusa.lib.theme.view.ThemeEditText
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/tie_book_intro"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minLines="4" />
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>