team_avchat_item.xml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. android:layout_width="match_parent"
  5. android:layout_height="wrap_content">
  6. <ImageView
  7. android:id="@+id/avatar_image"
  8. android:layout_width="0dp"
  9. android:layout_height="0dp"
  10. android:scaleType="centerCrop"
  11. app:layout_constraintBottom_toBottomOf="parent"
  12. app:layout_constraintDimensionRatio="1:1"
  13. app:layout_constraintLeft_toLeftOf="parent"
  14. app:layout_constraintRight_toRightOf="parent"
  15. app:layout_constraintTop_toTopOf="parent" />
  16. <ImageView
  17. android:id="@+id/loading_image"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:scaleType="center"
  21. app:layout_constraintBottom_toBottomOf="parent"
  22. app:layout_constraintLeft_toLeftOf="parent"
  23. app:layout_constraintRight_toRightOf="parent"
  24. app:layout_constraintTop_toTopOf="parent" />
  25. <TextView
  26. android:id="@+id/avchat_state_text"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:text="@string/avchat_no_pick_up"
  30. android:textAlignment="center"
  31. android:textColor="@color/white"
  32. android:textSize="12sp"
  33. android:visibility="invisible"
  34. app:layout_constraintBottom_toBottomOf="parent"
  35. app:layout_constraintLeft_toLeftOf="parent"
  36. app:layout_constraintRight_toRightOf="parent"
  37. app:layout_constraintTop_toTopOf="parent" />
  38. <com.netease.nimlib.sdk.avchat.model.AVChatVideoRender
  39. android:id="@+id/surface"
  40. android:layout_width="0dp"
  41. android:layout_height="0dp"
  42. android:visibility="invisible"
  43. app:layout_constraintBottom_toBottomOf="parent"
  44. app:layout_constraintDimensionRatio="1:1"
  45. app:layout_constraintLeft_toLeftOf="parent"
  46. app:layout_constraintRight_toRightOf="parent"
  47. app:layout_constraintTop_toTopOf="parent" />
  48. <android.support.constraint.ConstraintLayout
  49. android:layout_width="0dp"
  50. android:layout_height="wrap_content"
  51. android:background="@color/color_gray_alpha40"
  52. app:layout_constraintBottom_toBottomOf="parent"
  53. app:layout_constraintLeft_toLeftOf="parent"
  54. app:layout_constraintRight_toRightOf="parent">
  55. <TextView
  56. android:id="@+id/nick_name_text"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_margin="3dip"
  60. android:ellipsize="end"
  61. android:maxLines="1"
  62. android:text="@string/online"
  63. android:textAlignment="center"
  64. android:textColor="@color/white"
  65. android:textSize="12sp"
  66. app:layout_constraintBottom_toBottomOf="parent"
  67. app:layout_constraintLeft_toLeftOf="parent"
  68. app:layout_constraintRight_toRightOf="parent"
  69. app:layout_constraintTop_toTopOf="parent" />
  70. <ProgressBar
  71. android:id="@+id/avchat_volume"
  72. style="?android:attr/progressBarStyleHorizontal"
  73. android:layout_width="0dp"
  74. android:layout_height="16dp"
  75. android:max="600"
  76. android:progress="0"
  77. app:layout_constraintBottom_toBottomOf="parent"
  78. app:layout_constraintLeft_toLeftOf="parent"
  79. app:layout_constraintRight_toRightOf="parent" />
  80. </android.support.constraint.ConstraintLayout>
  81. </android.support.constraint.ConstraintLayout>