activity_main.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. tools:context="com.vvsip.amdemo.MainActivity" >
  6. <FrameLayout
  7. android:id="@+id/content_frame"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent" />
  10. <LinearLayout
  11. android:id="@+id/linearLayout1"
  12. android:layout_width="fill_parent"
  13. android:layout_height="wrap_content"
  14. android:layout_weight="1"
  15. android:orientation="vertical" >
  16. <LinearLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:orientation="horizontal" >
  20. <EditText
  21. android:id="@+id/server_addr"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_weight="1"
  25. android:ems="10"
  26. android:text="192.168.1.103:5060" />
  27. </LinearLayout>
  28. <LinearLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:orientation="horizontal" >
  32. <EditText
  33. android:id="@+id/userphone"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_weight="1"
  37. android:ems="10"
  38. android:text="1001" >
  39. <requestFocus />
  40. </EditText>
  41. <EditText
  42. android:id="@+id/passwd"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_weight="1"
  46. android:ems="10"
  47. android:text="1234" />
  48. </LinearLayout>
  49. <LinearLayout
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:orientation="horizontal" >
  53. <Button
  54. android:id="@+id/register"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:layout_weight="1"
  58. android:text="注册" />
  59. </LinearLayout>
  60. </LinearLayout>
  61. <LinearLayout
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:layout_below="@id/linearLayout1"
  65. android:layout_weight="1"
  66. android:orientation="vertical" >
  67. <LinearLayout
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:orientation="horizontal" >
  71. <EditText
  72. android:id="@+id/callee"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_weight="6"
  76. android:text="1002" />
  77. <Button
  78. android:id="@+id/audio_call"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:layout_weight="1"
  82. android:text="打电话" />
  83. <Button
  84. android:id="@+id/add_video"
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:text="视频" />
  88. </LinearLayout>
  89. <LinearLayout
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:orientation="horizontal" >
  93. <Button
  94. android:id="@+id/end_call"
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:layout_weight="1"
  98. android:text="结束通话" />
  99. <Button
  100. android:id="@+id/off_hook"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_weight="1"
  104. android:text="接电话" />
  105. </LinearLayout>
  106. <LinearLayout
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:orientation="horizontal" >
  110. <EditText
  111. android:id="@+id/dtmf"
  112. android:layout_width="wrap_content"
  113. android:layout_height="wrap_content"
  114. android:layout_weight="6"
  115. android:text="1" />
  116. <Button
  117. android:id="@+id/send_dtmf"
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:text="发送DTMF"
  121. android:layout_weight="1"/>
  122. </LinearLayout>
  123. <LinearLayout
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:orientation="horizontal" >
  127. <ScrollView
  128. android:id="@+id/scrollView1"
  129. android:layout_width="match_parent"
  130. android:layout_height="match_parent" >
  131. <TextView
  132. android:id="@+id/call_status"
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:text="..." />
  136. </ScrollView>
  137. </LinearLayout>
  138. </LinearLayout>
  139. </RelativeLayout>