parent
f39ac0a011
commit
c5d3d5a1ea
@ -0,0 +1,13 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"> |
||||||
|
<solid android:color="@color/background" /> |
||||||
|
<stroke |
||||||
|
android:width="1dp" |
||||||
|
android:color="@color/bg_divider_line" /> |
||||||
|
<corners android:radius="1dp" /> |
||||||
|
<padding |
||||||
|
android:left="0dp" |
||||||
|
android:top="0dp" |
||||||
|
android:right="0dp" |
||||||
|
android:bottom="0dp" /> |
||||||
|
</shape> |
@ -0,0 +1,64 @@ |
|||||||
|
<?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"> |
||||||
|
|
||||||
|
<ImageView |
||||||
|
android:id="@+id/image_view" |
||||||
|
android:layout_width="0dp" |
||||||
|
android:layout_height="220dp" |
||||||
|
android:contentDescription="@string/loading" |
||||||
|
android:visibility="visible" |
||||||
|
android:scaleType="centerCrop" |
||||||
|
android:paddingTop="12dp" |
||||||
|
android:paddingRight="12dp" |
||||||
|
android:paddingLeft="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" |
||||||
|
android:paddingLeft="12dp" |
||||||
|
android:paddingRight="12dp" |
||||||
|
android:paddingTop="12dp" |
||||||
|
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:text="@string/app_name" |
||||||
|
android:textSize="11sp" |
||||||
|
android:maxLines="1" |
||||||
|
android:paddingLeft="12dp" |
||||||
|
android:paddingRight="12dp" |
||||||
|
android:paddingTop="10dp" |
||||||
|
app:layout_constraintTop_toBottomOf="@+id/tv_title" |
||||||
|
app:layout_constraintLeft_toLeftOf="parent" |
||||||
|
app:layout_constraintRight_toRightOf="parent" |
||||||
|
tools:ignore="SmallSp" /> |
||||||
|
|
||||||
|
<View |
||||||
|
android:layout_marginTop="12dp" |
||||||
|
app:layout_constraintTop_toBottomOf="@+id/tv_pub_date" |
||||||
|
android:layout_height="8dp" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:background="@color/bg_divider_line" /> |
||||||
|
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout> |
@ -0,0 +1,54 @@ |
|||||||
|
<?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:paddingLeft="4dp" |
||||||
|
android:paddingTop="8dp" |
||||||
|
android:paddingBottom="6dp" |
||||||
|
android:paddingRight="4dp" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="wrap_content"> |
||||||
|
|
||||||
|
<ImageView |
||||||
|
android:id="@+id/image_view" |
||||||
|
android:layout_width="0dp" |
||||||
|
android:layout_height="272dp" |
||||||
|
android:contentDescription="@string/loading" |
||||||
|
android:visibility="visible" |
||||||
|
android:scaleType="centerCrop" |
||||||
|
android:background="@drawable/bg_img_border" |
||||||
|
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="13sp" |
||||||
|
android:paddingTop="10dp" |
||||||
|
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:text="@string/app_name" |
||||||
|
android:textSize="11sp" |
||||||
|
android:maxLines="1" |
||||||
|
android:paddingTop="8dp" |
||||||
|
android:paddingBottom="2dp" |
||||||
|
app:layout_constraintTop_toBottomOf="@+id/tv_title" |
||||||
|
app:layout_constraintLeft_toLeftOf="parent" |
||||||
|
app:layout_constraintRight_toRightOf="parent" |
||||||
|
tools:ignore="SmallSp" /> |
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue