rts_activity.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. xmlns:app="http://schemas.android.com/apk/res-auto">
  6. <RelativeLayout
  7. android:id="@+id/start_session_layout"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:background="@color/white">
  11. <LinearLayout
  12. android:id="@+id/account_info_layout"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:orientation="vertical">
  16. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  17. android:id="@+id/head_image"
  18. android:layout_width="@dimen/avatar_size_default"
  19. android:layout_height="@dimen/avatar_size_default"
  20. android:layout_gravity="center_horizontal"
  21. android:layout_marginTop="50dip"/>
  22. <TextView
  23. android:id="@+id/name"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_gravity="center_horizontal"
  27. android:layout_marginTop="20dp"
  28. android:text="@string/empty"
  29. android:textColor="@color/color_red_ccfa3c55"
  30. android:textSize="21sp"/>
  31. <TextView
  32. android:id="@+id/session_step_text"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_gravity="center_horizontal"
  36. android:layout_marginTop="30dp"
  37. android:text="@string/empty"
  38. android:textSize="18sp"/>
  39. </LinearLayout>
  40. <LinearLayout
  41. android:id="@+id/callee_ack_layout"
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. android:layout_alignParentBottom="true"
  45. android:gravity="bottom|center_horizontal"
  46. android:orientation="horizontal"
  47. android:paddingBottom="30dip">
  48. <Button
  49. android:id="@+id/accept"
  50. android:layout_width="match_parent"
  51. android:layout_height="50dp"
  52. android:layout_marginLeft="10dp"
  53. android:layout_weight="1"
  54. android:background="@drawable/nim_message_button_bottom_send_selector"
  55. android:text="@string/accept_session"
  56. android:textColor="@color/white"/>
  57. <Button
  58. android:id="@+id/reject"
  59. android:layout_width="match_parent"
  60. android:layout_height="50dp"
  61. android:layout_marginLeft="20dp"
  62. android:layout_marginRight="10dp"
  63. android:layout_weight="1"
  64. android:background="@drawable/g_red_long_btn_selector"
  65. android:text="@string/reject_session"
  66. android:textColor="@color/white"/>
  67. </LinearLayout>
  68. <Button
  69. android:id="@+id/end_session"
  70. android:layout_width="match_parent"
  71. android:layout_height="50dp"
  72. android:layout_alignParentBottom="true"
  73. android:layout_centerHorizontal="true"
  74. android:layout_marginBottom="30dp"
  75. android:layout_marginLeft="20dip"
  76. android:layout_marginRight="20dip"
  77. android:background="@drawable/g_red_long_btn_selector"
  78. android:text="@string/cancel"
  79. android:textColor="@color/white"
  80. android:visibility="gone"/>
  81. </RelativeLayout>
  82. <RelativeLayout
  83. android:id="@+id/session_layout"
  84. android:layout_width="match_parent"
  85. android:layout_height="match_parent"
  86. android:visibility="gone">
  87. <RelativeLayout
  88. android:id="@+id/operate_layout"
  89. android:layout_width="match_parent"
  90. android:layout_height="60dip"
  91. android:layout_alignParentBottom="true"
  92. android:background="@color/grey">
  93. <Button
  94. android:id="@+id/audio_switch"
  95. android:layout_width="40dip"
  96. android:layout_height="40dip"
  97. android:layout_alignParentLeft="true"
  98. android:layout_centerVertical="true"
  99. android:layout_marginLeft="15dip"
  100. android:background="@drawable/icon_audio_open"/>
  101. <Button
  102. android:id="@+id/doodle_clear"
  103. android:layout_width="60dip"
  104. android:layout_height="40dip"
  105. android:layout_alignParentRight="true"
  106. android:layout_centerVertical="true"
  107. android:layout_marginRight="15dip"
  108. android:background="@drawable/nim_message_button_bottom_send_selector"
  109. android:text="@string/doodle_clear"
  110. android:textColor="@color/white"
  111. android:textSize="14sp"/>
  112. <Button
  113. android:id="@+id/doodle_back"
  114. android:layout_width="60dip"
  115. android:layout_height="40dip"
  116. android:layout_centerVertical="true"
  117. android:layout_marginRight="15dip"
  118. android:layout_toLeftOf="@id/doodle_clear"
  119. android:background="@drawable/nim_message_button_bottom_send_selector"
  120. android:text="@string/doodle_back"
  121. android:textColor="@color/white"
  122. android:textSize="14sp"/>
  123. </RelativeLayout>
  124. <RelativeLayout
  125. android:layout_width="match_parent"
  126. android:layout_height="match_parent"
  127. android:layout_above="@id/operate_layout"
  128. android:background="@color/grey">
  129. <com.sheishuo.app.rts.doodle.DoodleView
  130. android:id="@+id/doodle_view"
  131. android:layout_width="600px"
  132. android:layout_height="600px"
  133. android:layout_centerInParent="true"
  134. />
  135. </RelativeLayout>
  136. </RelativeLayout>
  137. <android.support.design.widget.AppBarLayout
  138. android:id="@+id/app_bar_layout"
  139. android:layout_width="match_parent"
  140. android:layout_height="wrap_content"
  141. android:theme="@style/AppTheme.AppBarOverlay"
  142. app:elevation="0dp">
  143. <android.support.v7.widget.Toolbar
  144. android:id="@+id/toolbar"
  145. android:layout_width="match_parent"
  146. android:layout_height="?attr/actionBarSize"
  147. android:background="?attr/colorPrimary"
  148. app:titleTextAppearance="@style/Toolbar.TitleText">
  149. <include layout="@layout/nim_action_bar_right_clickable_tv" />
  150. </android.support.v7.widget.Toolbar>
  151. </android.support.design.widget.AppBarLayout>
  152. </FrameLayout>