订阅源界面更新
This commit is contained in:
1 file changed
+20
-15
@@ -5,26 +5,30 @@
|
|||||||
android:layout_margin="4dp"
|
android:layout_margin="4dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:strokeWidth="0dp"
|
app:strokeColor="?attr/colorSurfaceContainer"
|
||||||
app:cardBackgroundColor="?attr/colorSurfaceContainer">
|
app:cardBackgroundColor="?attr/colorSurfaceContainer">
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:padding="8dp"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground">
|
android:background="?attr/selectableItemBackground">
|
||||||
|
|
||||||
<ImageView
|
<com.google.android.material.card.MaterialCardView
|
||||||
android:id="@+id/image_view"
|
android:id="@+id/cd_img"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@string/loading"
|
app:cardCornerRadius="0dp"
|
||||||
android:visibility="visible"
|
app:strokeColor="?attr/colorSurfaceContainer"
|
||||||
android:scaleType="centerCrop"
|
|
||||||
android:background="@drawable/bg_img_border"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent">
|
||||||
tools:ignore="RtlHardcoded,RtlSymmetry" />
|
<ImageView
|
||||||
|
android:id="@+id/image_view"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/loading"
|
||||||
|
android:visibility="visible"
|
||||||
|
android:scaleType="centerCrop" />
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_title"
|
android:id="@+id/tv_title"
|
||||||
@@ -33,10 +37,11 @@
|
|||||||
android:maxLines="3"
|
android:maxLines="3"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:text="@string/app_name"
|
android:text="@string/app_name"
|
||||||
android:textSize="13sp"
|
android:textSize="14sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:paddingTop="8dp"
|
android:layout_marginHorizontal="8dp"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/image_view"
|
android:paddingTop="4dp"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/cd_img"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent" />
|
app:layout_constraintRight_toRightOf="parent" />
|
||||||
|
|
||||||
@@ -46,9 +51,9 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/app_name"
|
android:text="@string/app_name"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:maxLines="2"
|
|
||||||
android:paddingTop="4dp"
|
android:paddingTop="4dp"
|
||||||
android:paddingBottom="2dp"
|
android:paddingBottom="10dp"
|
||||||
|
android:layout_marginHorizontal="8dp"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
|
|||||||
Reference in new issue
Block a user