item_mine_nearby_people.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.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:orientation="vertical" android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:padding="16dp"
  8. android:background="@color/white">
  9. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  10. android:id="@+id/item_mine_neaby_people_avatar"
  11. android:layout_width="48dp"
  12. android:layout_height="48dp"
  13. app:layout_constraintTop_toTopOf="parent"
  14. android:layout_marginTop="8dp"
  15. android:layout_marginLeft="8dp"
  16. app:layout_constraintLeft_toLeftOf="parent"
  17. android:src="@drawable/nim_avatar_default"/>
  18. <TextView
  19. android:id="@+id/item_mine_neaby_people_name"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:text="用户名"
  23. app:layout_constraintTop_toTopOf="@+id/item_mine_neaby_people_avatar"
  24. android:layout_marginTop="0dp"
  25. app:layout_constraintLeft_toRightOf="@+id/item_mine_neaby_people_avatar"
  26. android:layout_marginLeft="9dp" />
  27. <TextView
  28. android:id="@+id/item_mine_neaby_people_bio"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:textColor="@color/grey_light_light"
  32. android:layout_marginTop="8dp"
  33. app:layout_constraintTop_toBottomOf="@+id/item_mine_neaby_people_name"
  34. android:layout_marginLeft="0dp"
  35. app:layout_constraintLeft_toLeftOf="@+id/item_mine_neaby_people_name" />
  36. <TextView
  37. android:id="@+id/item_mine_neaby_people_distance"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:text="距离"
  41. android:textColor="@color/grey_light_light"
  42. android:layout_marginRight="8dp"
  43. app:layout_constraintRight_toRightOf="parent"
  44. app:layout_constraintTop_toTopOf="parent"
  45. android:layout_marginTop="8dp" />
  46. </android.support.constraint.ConstraintLayout>