Newer
Older
IrisClient / app / src / main / res / layout / recycler_view_item.xml
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content">
  8.  
  9. <ImageView
  10. android:id="@+id/imageView2"
  11. android:layout_width="50dp"
  12. android:layout_height="50dp"
  13. tools:src="@tools:sample/avatars"
  14. app:layout_constraintStart_toStartOf="parent"
  15. android:layout_marginStart="8dp"
  16. app:layout_constraintTop_toTopOf="parent"
  17. android:layout_marginTop="8dp" />
  18.  
  19. <TextView
  20. android:id="@+id/textView"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. tools:text="@tools:sample/full_names"
  24. android:textSize="20sp"
  25. android:textColor="@android:color/black"
  26. app:layout_constraintTop_toTopOf="@+id/imageView2"
  27. app:layout_constraintStart_toEndOf="@+id/imageView2"
  28. android:layout_marginStart="8dp"
  29. android:layout_marginBottom="8dp"
  30. app:layout_constraintBottom_toTopOf="@+id/textView2" />
  31.  
  32. <TextView
  33. android:id="@+id/textView2"
  34. android:layout_width="285dp"
  35. android:layout_height="20dp"
  36. tools:text="@tools:sample/lorem[4:10]"
  37. app:layout_constraintBottom_toBottomOf="@+id/imageView2"
  38. app:layout_constraintStart_toEndOf="@+id/imageView2"
  39. android:layout_marginStart="8dp"
  40. app:layout_constraintEnd_toEndOf="parent"
  41. android:layout_marginEnd="8dp"
  42. app:layout_constraintHorizontal_bias="0.050" />
  43.  
  44. <TextView
  45. android:id="@+id/textView3"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. tools:text="@tools:sample/date/hhmm"
  49. app:layout_constraintTop_toTopOf="@+id/imageView2"
  50. app:layout_constraintEnd_toEndOf="parent"
  51. android:layout_marginEnd="8dp" />
  52. </androidx.constraintlayout.widget.ConstraintLayout>