item_rss_article_2.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:paddingLeft="4dp"
  6. android:paddingTop="8dp"
  7. android:paddingBottom="6dp"
  8. android:paddingRight="4dp"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content">
  11. <ImageView
  12. android:id="@+id/image_view"
  13. android:layout_width="0dp"
  14. android:layout_height="272dp"
  15. android:contentDescription="@string/loading"
  16. android:visibility="visible"
  17. android:scaleType="centerCrop"
  18. android:background="@drawable/bg_img_border"
  19. app:layout_constraintTop_toTopOf="parent"
  20. app:layout_constraintLeft_toLeftOf="parent"
  21. app:layout_constraintRight_toRightOf="parent"
  22. tools:ignore="RtlHardcoded,RtlSymmetry" />
  23. <TextView
  24. android:id="@+id/tv_title"
  25. android:layout_width="0dp"
  26. android:layout_height="wrap_content"
  27. android:maxLines="2"
  28. android:ellipsize="end"
  29. android:text="@string/app_name"
  30. android:textSize="13sp"
  31. android:paddingTop="10dp"
  32. app:layout_constraintTop_toBottomOf="@+id/image_view"
  33. app:layout_constraintLeft_toLeftOf="parent"
  34. app:layout_constraintRight_toRightOf="parent" />
  35. <TextView
  36. android:id="@+id/tv_pub_date"
  37. android:layout_width="0dp"
  38. android:layout_height="wrap_content"
  39. android:layout_gravity="center"
  40. android:text="@string/app_name"
  41. android:textSize="11sp"
  42. android:maxLines="1"
  43. android:paddingTop="8dp"
  44. android:paddingBottom="2dp"
  45. app:layout_constraintTop_toBottomOf="@+id/tv_title"
  46. app:layout_constraintLeft_toLeftOf="parent"
  47. app:layout_constraintRight_toRightOf="parent"
  48. tools:ignore="SmallSp" />
  49. </androidx.constraintlayout.widget.ConstraintLayout>