|
@@ -1,14 +1,15 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingHorizontal="16dp"
|
|
|
android:paddingBottom="16dp">
|
|
android:paddingBottom="16dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
android:id="@+id/header_layout"
|
|
android:id="@+id/header_layout"
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical"
|
|
android:orientation="vertical"
|
|
|
android:gravity="center"
|
|
android:gravity="center"
|
|
@@ -46,6 +47,7 @@
|
|
|
style="@style/Widget.Material3.LoadingIndicator.Contained"
|
|
style="@style/Widget.Material3.LoadingIndicator.Contained"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_gravity="center"
|
|
|
android:layout_margin="32dp"
|
|
android:layout_margin="32dp"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
@@ -56,17 +58,23 @@
|
|
|
android:id="@+id/scroll_container"
|
|
android:id="@+id/scroll_container"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:minHeight="64dp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@id/tab_layout">
|
|
app:layout_constraintTop_toBottomOf="@id/tab_layout">
|
|
|
|
|
|
|
|
- <io.legato.kazusa.ui.widget.text.ScrollTextView
|
|
|
|
|
|
|
+ <TextView
|
|
|
android:id="@+id/tv_dict"
|
|
android:id="@+id/tv_dict"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent" />
|
|
|
|
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
|
|
-</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
+ <io.legato.kazusa.ui.widget.EmptyMessageView
|
|
|
|
|
+ android:id="@+id/empty_message_view"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
|
+ app:messageText="词典内容为空!"/>
|
|
|
|
|
+
|
|
|
|
|
+</LinearLayout>
|