parent
2e9b6cccc3
commit
8b87c7fd24
@ -0,0 +1,51 @@ |
||||
<?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" |
||||
android:padding="14dp"> |
||||
|
||||
<ImageView |
||||
android:id="@+id/image_view" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:contentDescription="@string/img_cover" |
||||
android:visibility="gone" |
||||
android:scaleType="centerCrop" |
||||
android:layout_marginBottom="12dp" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_title" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:maxLines="2" |
||||
android:ellipsize="end" |
||||
android:text="@string/app_name" |
||||
android:textColor="@color/tv_text_default" |
||||
android:textSize="15sp" |
||||
android:textStyle="bold" |
||||
app:layout_constraintTop_toBottomOf="@+id/image_view" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toRightOf="parent" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_pub_date" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="center" |
||||
android:layout_marginTop="16dp" |
||||
android:text="@string/app_name" |
||||
android:textSize="12sp" |
||||
android:maxLines="1" |
||||
app:layout_constraintTop_toBottomOf="@+id/tv_title" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toRightOf="parent" /> |
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
@ -0,0 +1,50 @@ |
||||
<?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="100dp" |
||||
android:padding="16dp"> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_title" |
||||
android:layout_width="0dp" |
||||
android:layout_height="0dp" |
||||
android:maxLines="2" |
||||
android:ellipsize="end" |
||||
android:text="@string/app_name" |
||||
android:textColor="@color/tv_text_default" |
||||
android:textSize="16sp" |
||||
android:textStyle="bold" |
||||
app:layout_constraintBottom_toTopOf="@+id/tv_pub_date" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toLeftOf="@+id/image_view" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_pub_date" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="center" |
||||
android:layout_marginTop="8dp" |
||||
android:text="@string/app_name" |
||||
android:textSize="12sp" |
||||
android:textStyle="italic" |
||||
android:maxLines="1" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toLeftOf="@+id/image_view" /> |
||||
|
||||
<ImageView |
||||
android:id="@+id/image_view" |
||||
android:layout_width="110dp" |
||||
android:layout_height="68dp" |
||||
android:contentDescription="@string/img_cover" |
||||
android:paddingLeft="16dp" |
||||
android:visibility="gone" |
||||
android:scaleType="centerCrop" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue