feat: 文件项目布局设计初稿
This commit is contained in:
@@ -36,4 +36,9 @@
|
|||||||
|
|
||||||
</io.legado.app.ui.widget.dynamiclayout.DynamicFrameLayout>
|
</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" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -1,91 +1,104 @@
|
|||||||
<?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"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="60dp"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:baselineAligned="false">
|
||||||
|
|
||||||
<io.legado.app.ui.widget.image.CoverImageView
|
<FrameLayout
|
||||||
android:id="@+id/iv_cover"
|
android:layout_width="60dp"
|
||||||
android:layout_width="80dp"
|
android:layout_height="match_parent">
|
||||||
android:layout_height="110dp"
|
<!--选择是否添加文件-->
|
||||||
android:layout_margin="8dp"
|
<io.legado.app.lib.theme.view.ThemeCheckBox
|
||||||
android:contentDescription="@string/img_cover"
|
android:id="@+id/cb_select"
|
||||||
android:scaleType="centerCrop"
|
android:layout_width="wrap_content"
|
||||||
android:src="@drawable/image_cover_default"
|
android:layout_height="wrap_content"
|
||||||
android:transitionName="img_cover"
|
android:layout_gravity="center"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:clickable="false"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
android:enabled="true"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:focusable="true" />
|
||||||
tools:ignore="UnusedAttribute" />
|
<!--文件夹标识或已选文件标识-->
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:id="@+id/iv_icon"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:scaleType="center"
|
||||||
|
android:visibility="invisible"
|
||||||
|
android:src="@drawable/ic_folder"
|
||||||
|
app:tint="@color/primaryText" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
<io.legado.app.ui.widget.text.BadgeView
|
<LinearLayout
|
||||||
android:id="@+id/bv_originCount"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="8dp"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintRight_toRightOf="parent" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_name"
|
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="8dp"
|
android:layout_weight="1"
|
||||||
android:singleLine="true"
|
android:paddingTop="5dp"
|
||||||
android:text="@string/app_name"
|
android:paddingBottom="5dp"
|
||||||
android:textColor="@color/primaryText"
|
android:orientation="vertical">
|
||||||
android:textSize="16sp"
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/bv_originCount"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/iv_cover"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<!-- <LinearLayout-->
|
<TextView
|
||||||
<!-- android:layout_width="0dp"-->
|
android:id="@+id/tv_name"
|
||||||
<!-- android:layout_height="0dp"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:orientation="vertical"-->
|
android:layout_height="0dp"
|
||||||
<!-- android:layout_marginTop="3dp"-->
|
android:layout_weight="1"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="@id/iv_cover"-->
|
android:singleLine="true"
|
||||||
<!-- app:layout_constraintLeft_toLeftOf="@+id/tv_name"-->
|
android:text="@string/app_name"
|
||||||
<!-- app:layout_constraintRight_toRightOf="@id/tv_name"-->
|
android:textSize="16sp"
|
||||||
<!-- app:layout_constraintTop_toBottomOf="@+id/tv_name">-->
|
android:gravity="center_vertical"
|
||||||
|
tools:ignore="NestedWeights" />
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/ll_brief"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<!-- <TextView-->
|
<io.legado.app.ui.widget.text.AccentBgTextView
|
||||||
<!-- android:id="@+id/tv_author"-->
|
android:id="@+id/tv_tag"
|
||||||
<!-- android:layout_width="match_parent"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:layout_height="wrap_content"-->
|
android:layout_height="wrap_content"
|
||||||
<!-- android:ellipsize="end"-->
|
android:layout_marginRight="15dp"
|
||||||
<!-- android:lines="1"-->
|
android:paddingStart="5dp"
|
||||||
<!-- android:text="@string/author"-->
|
android:paddingEnd="5dp"
|
||||||
<!-- android:textColor="@color/primaryText"-->
|
android:text="TXT"
|
||||||
<!-- android:textSize="12sp" />-->
|
android:maxLines="1"
|
||||||
|
android:maxWidth="50dp"
|
||||||
|
app:radius="2dp"
|
||||||
|
tools:ignore="HardcodedText,RtlHardcoded" />
|
||||||
|
|
||||||
<!-- <io.legado.app.ui.widget.LabelsBar-->
|
<TextView
|
||||||
<!-- android:id="@+id/ll_kind"-->
|
android:id="@+id/tv_size"
|
||||||
<!-- android:layout_width="match_parent"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:layout_height="wrap_content"-->
|
android:layout_height="wrap_content"
|
||||||
<!-- android:orientation="horizontal" />-->
|
android:layout_marginRight="15dp"
|
||||||
|
tools:ignore="RtlHardcoded"
|
||||||
|
tools:text="324kb" />
|
||||||
|
|
||||||
<!-- <TextView-->
|
<TextView
|
||||||
<!-- android:id="@+id/tv_lasted"-->
|
android:id="@+id/tv_date"
|
||||||
<!-- android:layout_width="match_parent"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:layout_height="wrap_content"-->
|
android:layout_height="wrap_content"
|
||||||
<!-- android:ellipsize="end"-->
|
tools:text="2017-05-22" />
|
||||||
<!-- android:lines="1"-->
|
</LinearLayout>
|
||||||
<!-- android:text="@string/last_read"-->
|
|
||||||
<!-- android:textColor="@color/primaryText"-->
|
|
||||||
<!-- android:textSize="12sp" />-->
|
|
||||||
|
|
||||||
<!-- <io.legado.app.ui.widget.text.MultilineTextView-->
|
</LinearLayout>
|
||||||
<!-- android:id="@+id/tv_introduce"-->
|
<LinearLayout
|
||||||
<!-- android:layout_width="match_parent"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:layout_height="match_parent"-->
|
android:layout_height="match_parent"
|
||||||
<!-- android:ellipsize="end"-->
|
android:paddingTop="5dp"
|
||||||
<!-- android:text="@string/book_intro"-->
|
android:paddingBottom="5dp"
|
||||||
<!-- android:textColor="@color/primaryText"-->
|
android:orientation="vertical"
|
||||||
<!-- android:textSize="12sp" />-->
|
android:gravity="center_vertical"
|
||||||
|
>
|
||||||
<!-- </LinearLayout>-->
|
<Button
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
android:text="下载"
|
||||||
|
>
|
||||||
|
</Button>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
Reference in New Issue
Block a user