pull/1994/head
parent
6f4bb0f387
commit
d62c757cc4
@ -1,67 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
xmlns:tools="http://schemas.android.com/tools"> |
||||
|
||||
<io.legado.app.ui.widget.TitleBar |
||||
android:id="@+id/title_bar" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
app:title="@string/remote_book" /> |
||||
|
||||
<io.legado.app.ui.widget.anima.RefreshProgressBar |
||||
android:id="@+id/refresh_progress_bar" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="2dp" |
||||
app:layout_constraintTop_toBottomOf="@id/title_bar" /> |
||||
|
||||
<io.legado.app.ui.widget.dynamiclayout.DynamicFrameLayout |
||||
android:id="@+id/content_view" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="0dp" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/refresh_progress_bar"> |
||||
|
||||
<androidx.recyclerview.widget.RecyclerView |
||||
android:id="@+id/recycler_view" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" /> |
||||
|
||||
<io.legado.app.ui.widget.anima.RotateLoading |
||||
android:id="@+id/rotate_loading" |
||||
android:layout_width="36dp" |
||||
android:layout_height="36dp" |
||||
android:layout_margin="6dp" |
||||
android:visibility="gone" |
||||
android:layout_gravity="center" |
||||
app:loading_width="2dp" /> |
||||
|
||||
</io.legado.app.ui.widget.dynamiclayout.DynamicFrameLayout> |
||||
|
||||
<!-- <io.legado.app.ui.widget.SelectActionBar--> |
||||
<!-- android:id="@+id/select_action_bar"--> |
||||
<!-- android:layout_width="match_parent"--> |
||||
<!-- android:layout_height="wrap_content"--> |
||||
<!-- app:layout_constraintBottom_toBottomOf="parent"--> |
||||
<!-- app:layout_constraintTop_toBottomOf="@id/content_view"--> |
||||
<!-- />--> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_empty_msg" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="16dp" |
||||
android:gravity="center" |
||||
android:visibility="gone" |
||||
android:text="webDav books文件夹为空" |
||||
app:layout_constraintTop_toBottomOf="@+id/title_bar" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
tools:text="Empty" /> |
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
@ -1,108 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<androidx.constraintlayout.widget.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="wrap_content"> |
||||
|
||||
<io.legado.app.ui.widget.image.CoverImageView |
||||
android:id="@+id/iv_cover" |
||||
android:layout_width="66dp" |
||||
android:layout_height="90dp" |
||||
android:layout_margin="8dp" |
||||
android:contentDescription="@string/img_cover" |
||||
android:scaleType="centerCrop" |
||||
android:src="@drawable/image_cover_default" |
||||
android:transitionName="img_cover" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:ignore="UnusedAttribute" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_name" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="8dp" |
||||
android:text="@string/app_name" |
||||
android:textColor="@color/primaryText" |
||||
android:textSize="16sp" |
||||
app:layout_constraintBottom_toTopOf="@+id/ll_info" |
||||
app:layout_constraintStart_toEndOf="@+id/iv_cover" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
||||
<LinearLayout |
||||
android:id="@+id/ll_info" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="8dp" |
||||
android:gravity="top" |
||||
android:orientation="horizontal" |
||||
app:layout_constraintBottom_toTopOf="@+id/tv_content_type" |
||||
app:layout_constraintLeft_toRightOf="@+id/iv_cover" |
||||
app:layout_constraintTop_toBottomOf="@+id/tv_name" |
||||
app:layout_constraintRight_toLeftOf="@+id/btn_download"> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_size" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:ellipsize="end" |
||||
android:lines="1" |
||||
android:textColor="@color/tv_text_summary" |
||||
android:textSize="13sp" |
||||
tools:ignore="TextContrastCheck" |
||||
tools:text="128kb" /> |
||||
|
||||
<TextView |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:ellipsize="end" |
||||
android:lines="1" |
||||
android:text="@string/separator" |
||||
android:textColor="@color/tv_text_summary" |
||||
android:textSize="11sp" |
||||
tools:ignore="TextContrastCheck" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_date" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:ellipsize="end" |
||||
android:lines="1" |
||||
android:textColor="@color/tv_text_summary" |
||||
android:textSize="13sp" |
||||
tools:ignore="TextContrastCheck" |
||||
tools:text="2022-12-7" /> |
||||
|
||||
</LinearLayout> |
||||
|
||||
<io.legado.app.ui.widget.text.AccentBgTextView |
||||
android:id="@+id/tv_content_type" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="8dp" |
||||
android:maxWidth="50dp" |
||||
android:singleLine="true" |
||||
android:paddingStart="5dp" |
||||
android:paddingEnd="5dp" |
||||
android:text="TXT" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintLeft_toRightOf="@+id/iv_cover" |
||||
app:layout_constraintTop_toBottomOf="@id/ll_info" |
||||
app:radius="2dp" |
||||
tools:ignore="HardcodedText,RtlHardcoded" /> |
||||
|
||||
<io.legado.app.ui.widget.text.AccentStrokeTextView |
||||
android:id="@+id/btn_download" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="8dp" |
||||
android:padding="6dp" |
||||
android:text="@string/nb_file_add_shelf" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@+id/tv_name" |
||||
tools:text="加入书架" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue