team_avchat_surface_layout.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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="match_parent"
  6. android:background="@color/black">
  7. <android.support.v7.widget.RecyclerView
  8. android:id="@+id/recycler_view"
  9. android:layout_width="0dp"
  10. android:layout_height="wrap_content"
  11. android:background="@color/black"
  12. app:layout_constraintLeft_toLeftOf="parent"
  13. app:layout_constraintRight_toRightOf="parent"
  14. app:layout_constraintTop_toTopOf="parent" />
  15. <TextView
  16. android:id="@+id/timer_text"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:text="@string/avchat_call"
  20. android:textAlignment="center"
  21. android:textColor="@color/white"
  22. android:textSize="22sp"
  23. android:layout_marginTop="50dip"
  24. app:layout_constraintLeft_toLeftOf="parent"
  25. app:layout_constraintRight_toRightOf="parent"
  26. app:layout_constraintTop_toBottomOf="@id/recycler_view" />
  27. <android.support.constraint.ConstraintLayout
  28. android:id="@+id/avchat_setting_layout"
  29. android:layout_width="0dp"
  30. android:layout_height="wrap_content"
  31. android:background="@color/t_av_chat_setting_bar"
  32. app:layout_constraintBottom_toBottomOf="parent"
  33. app:layout_constraintLeft_toLeftOf="parent"
  34. app:layout_constraintRight_toRightOf="parent">
  35. <RelativeLayout
  36. android:id="@+id/r1"
  37. android:layout_width="0dp"
  38. android:layout_height="wrap_content"
  39. app:layout_constraintBottom_toBottomOf="parent"
  40. app:layout_constraintHorizontal_chainStyle="spread_inside"
  41. app:layout_constraintLeft_toLeftOf="parent"
  42. app:layout_constraintRight_toLeftOf="@+id/r2">
  43. <TextView
  44. android:id="@+id/avchat_switch_camera"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_centerInParent="true"
  48. android:layout_marginBottom="@dimen/t_avchat_setting_margin"
  49. android:layout_marginTop="@dimen/t_avchat_setting_margin"
  50. android:background="@drawable/t_avchat_switch_camera_selector"
  51. android:clickable="true" />
  52. </RelativeLayout>
  53. <RelativeLayout
  54. android:id="@+id/r2"
  55. android:layout_width="0dp"
  56. android:layout_height="wrap_content"
  57. app:layout_constraintBottom_toBottomOf="parent"
  58. app:layout_constraintLeft_toRightOf="@+id/r1"
  59. app:layout_constraintRight_toLeftOf="@+id/r3">
  60. <TextView
  61. android:id="@+id/avchat_enable_video"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:layout_centerInParent="true"
  65. android:layout_marginBottom="@dimen/t_avchat_setting_margin"
  66. android:layout_marginTop="@dimen/t_avchat_setting_margin"
  67. android:background="@drawable/t_avchat_camera_selector"
  68. android:clickable="true" />
  69. </RelativeLayout>
  70. <RelativeLayout
  71. android:id="@+id/r3"
  72. android:layout_width="0dp"
  73. android:layout_height="wrap_content"
  74. app:layout_constraintBottom_toBottomOf="parent"
  75. app:layout_constraintLeft_toRightOf="@+id/r2"
  76. app:layout_constraintRight_toLeftOf="@+id/r4">
  77. <TextView
  78. android:id="@+id/avchat_enable_audio"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:layout_centerInParent="true"
  82. android:layout_marginBottom="@dimen/t_avchat_setting_margin"
  83. android:layout_marginTop="@dimen/t_avchat_setting_margin"
  84. android:background="@drawable/t_avchat_microphone_selector"
  85. android:clickable="true" />
  86. </RelativeLayout>
  87. <RelativeLayout
  88. android:id="@+id/r4"
  89. android:layout_width="0dp"
  90. android:layout_height="wrap_content"
  91. app:layout_constraintBottom_toBottomOf="parent"
  92. app:layout_constraintLeft_toRightOf="@+id/r3"
  93. app:layout_constraintRight_toLeftOf="@+id/r5">
  94. <TextView
  95. android:id="@+id/avchat_volume"
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:layout_centerInParent="true"
  99. android:layout_marginBottom="@dimen/t_avchat_setting_margin"
  100. android:layout_marginTop="@dimen/t_avchat_setting_margin"
  101. android:background="@drawable/t_avchat_speaker_selector"
  102. android:clickable="true" />
  103. </RelativeLayout>
  104. <RelativeLayout
  105. android:id="@+id/r5"
  106. android:layout_width="0dp"
  107. android:layout_height="wrap_content"
  108. app:layout_constraintBottom_toBottomOf="parent"
  109. app:layout_constraintLeft_toRightOf="@+id/r4"
  110. app:layout_constraintRight_toLeftOf="@+id/r6">
  111. <TextView
  112. android:id="@+id/avchat_shield_user"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:layout_centerInParent="true"
  116. android:layout_marginBottom="@dimen/t_avchat_setting_margin"
  117. android:layout_marginTop="@dimen/t_avchat_setting_margin"
  118. android:background="@drawable/t_avchat_disable_user_audio_selector"
  119. android:enabled="false" />
  120. </RelativeLayout>
  121. <RelativeLayout
  122. android:id="@+id/r6"
  123. android:layout_width="0dp"
  124. android:layout_height="wrap_content"
  125. android:background="@color/color_red_f04c62"
  126. app:layout_constraintBottom_toBottomOf="parent"
  127. app:layout_constraintLeft_toRightOf="@+id/r5"
  128. app:layout_constraintRight_toRightOf="parent">
  129. <FrameLayout
  130. android:id="@+id/hangup"
  131. android:layout_width="match_parent"
  132. android:layout_height="wrap_content">
  133. <TextView
  134. android:id="@+id/avchat_hang_up"
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:layout_gravity="center"
  138. android:layout_marginBottom="@dimen/t_avchat_setting_margin"
  139. android:layout_marginTop="@dimen/t_avchat_setting_margin"
  140. android:background="@drawable/t_avchat_hangup_selector"/>
  141. </FrameLayout>
  142. </RelativeLayout>
  143. </android.support.constraint.ConstraintLayout>
  144. </android.support.constraint.ConstraintLayout>