item_phone_contact_layout.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content">
  8. <android.support.constraint.ConstraintLayout
  9. android:orientation="vertical" android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:padding="8dp">
  12. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  13. android:id="@+id/item_phone_contact_avtar"
  14. android:layout_width="48dp"
  15. android:layout_height="48dp"
  16. android:src="@drawable/nim_avatar_default"
  17. app:layout_constraintTop_toTopOf="parent"
  18. app:layout_constraintLeft_toLeftOf="parent" />
  19. <TextView
  20. android:id="@+id/item_phone_contact_nickname_TV"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:text="用户昵称"
  24. app:layout_constraintLeft_toRightOf="@+id/item_phone_contact_avtar"
  25. android:layout_marginLeft="9dp"
  26. app:layout_constraintTop_toTopOf="@+id/item_phone_contact_avtar"
  27. android:layout_marginTop="-8dp" />
  28. <TextView
  29. android:id="@+id/item_phone_contact_name_TV"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:text="手机通讯录XXX"
  33. android:layout_marginLeft="0dp"
  34. app:layout_constraintLeft_toLeftOf="@+id/item_phone_contact_nickname_TV"
  35. android:layout_marginTop="14dp"
  36. app:layout_constraintTop_toBottomOf="@+id/item_phone_contact_nickname_TV" />
  37. <Button
  38. android:id="@+id/item_phone_contact_add_friends_btn"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:text="已添加"
  42. android:textColor="@color/white"
  43. android:background="@drawable/shape_button_rc_solid_bg_primarycolor"
  44. android:layout_marginRight="8dp"
  45. app:layout_constraintRight_toRightOf="parent"
  46. app:layout_constraintTop_toTopOf="parent"
  47. android:layout_marginTop="8dp"
  48. android:enabled="false"/>
  49. </android.support.constraint.ConstraintLayout>
  50. <View android:layout_width="match_parent"
  51. android:layout_height="1dp"
  52. android:background="@color/grey_light_light"/>
  53. </LinearLayout>