This commit is contained in:
kunfei
2022-06-17 21:23:33 +08:00
parent 28da984281
commit bf7bdd6507
2 changed files with 18 additions and 6 deletions
@@ -24,7 +24,7 @@ import kotlinx.coroutines.launch
* @author qianfanguojin
* @time 2022/05/12
*/
class RemoteBookActivity : VMBaseActivity<ActivityRemoteBookBinding,RemoteBookViewModel>(),
class RemoteBookActivity : VMBaseActivity<ActivityRemoteBookBinding, RemoteBookViewModel>(),
RemoteBookAdapter.CallBack {
override val binding by viewBinding(ActivityRemoteBookBinding::inflate)
override val viewModel by viewModels<RemoteBookViewModel>()
+17 -5
View File
@@ -29,17 +29,18 @@
android:textColor="@color/primaryText"
android:textSize="16sp"
app:layout_constraintStart_toEndOf="@+id/iv_cover"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@+id/ll_info" />
<LinearLayout
android:id="@+id/ll_info"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:layout_height="wrap_content"
android:gravity="top"
android:orientation="horizontal"
app:layout_constraintLeft_toLeftOf="@+id/tv_name"
app:layout_constraintTop_toBottomOf="@+id/tv_name">
app:layout_constraintTop_toBottomOf="@+id/tv_name"
app:layout_constraintBottom_toTopOf="@+id/tv_content_type">
<TextView
android:id="@+id/tv_size"
@@ -77,7 +78,6 @@
android:id="@+id/tv_content_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginRight="15dp"
android:maxWidth="50dp"
android:maxLines="1"
@@ -86,9 +86,21 @@
android:text="TXT"
app:layout_constraintLeft_toLeftOf="@+id/tv_name"
app:layout_constraintTop_toBottomOf="@id/ll_info"
app:layout_constraintBottom_toTopOf="@id/tv_in_bookshelf"
app:radius="2dp"
tools:ignore="HardcodedText,RtlHardcoded" />
<TextView
android:id="@+id/tv_in_bookshelf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:paddingStart="5dp"
android:paddingEnd="5dp"
app:layout_constraintLeft_toLeftOf="@+id/tv_name"
app:layout_constraintTop_toBottomOf="@+id/tv_content_type"
app:layout_constraintBottom_toBottomOf="parent" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"