avchat_audio_control_layout.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:paddingLeft="15dp"
  5. android:paddingRight="15dp"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content">
  8. <LinearLayout
  9. android:gravity="center_vertical"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content">
  12. <RelativeLayout
  13. android:descendantFocusability="beforeDescendants"
  14. android:id="@+id/avchat_audio_mute"
  15. android:clickable="true"
  16. android:background="@drawable/avchat_mute_speaker_bg"
  17. android:layout_width="0dp"
  18. android:layout_weight="1"
  19. android:layout_height="wrap_content">
  20. <Button
  21. android:clickable="false"
  22. android:drawableLeft="@drawable/avchat_mute_icon_selector"
  23. android:drawablePadding="8dp"
  24. android:layout_centerInParent="true"
  25. android:background="@color/transparent"
  26. android:gravity="center"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:text="静音"
  30. android:textColor="@drawable/avchat_audio_call_text_color_selector"
  31. android:textSize="17sp"
  32. />
  33. </RelativeLayout>
  34. <RelativeLayout
  35. android:layout_marginLeft="5dp"
  36. android:descendantFocusability="beforeDescendants"
  37. android:id="@+id/avchat_audio_speaker"
  38. android:clickable="true"
  39. android:background="@drawable/avchat_mute_speaker_bg"
  40. android:layout_width="0dp"
  41. android:layout_weight="1"
  42. android:layout_height="wrap_content">
  43. <Button
  44. android:clickable="false"
  45. android:drawableLeft="@drawable/avchat_speaker_icon_selector"
  46. android:drawablePadding="8dp"
  47. android:layout_centerInParent="true"
  48. android:background="@color/transparent"
  49. android:gravity="center"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:text="扬声器"
  53. android:textColor="@drawable/avchat_audio_call_text_color_selector"
  54. android:textSize="17sp"
  55. />
  56. </RelativeLayout>
  57. <RelativeLayout
  58. android:layout_marginLeft="5dp"
  59. android:descendantFocusability="beforeDescendants"
  60. android:id="@+id/avchat_audio_record"
  61. android:background="@drawable/avchat_mute_speaker_bg"
  62. android:clickable="true"
  63. android:layout_width="0dp"
  64. android:layout_weight="1"
  65. android:layout_height="wrap_content">
  66. <Button
  67. android:id="@+id/avchat_audio_record_button"
  68. android:drawableLeft="@drawable/avchat_audio_record_icon_selector"
  69. android:clickable="false"
  70. android:drawablePadding="8dp"
  71. android:layout_centerInParent="true"
  72. android:background="@color/transparent"
  73. android:gravity="center"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="录制"
  77. android:textColor="@drawable/avchat_audio_call_text_color_selector"
  78. android:textSize="17sp"
  79. />
  80. </RelativeLayout>
  81. </LinearLayout>
  82. <LinearLayout
  83. android:layout_marginTop="5dp"
  84. android:orientation="horizontal"
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content">
  87. <Button
  88. android:id="@+id/avchat_audio_hangup"
  89. android:gravity="center"
  90. android:layout_width="0dp"
  91. android:layout_weight="1.0"
  92. android:layout_height="wrap_content"
  93. android:text="@string/avchat_hangup"
  94. android:textColor="@color/white"
  95. android:textSize="17sp"
  96. android:background="@drawable/avchat_refuse_bg_selector"
  97. android:visibility="visible"
  98. />
  99. </LinearLayout>
  100. </LinearLayout>