activity_operate_geo_fence.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. android:layout_width="match_parent"
  3. android:layout_height="match_parent"
  4. android:orientation="vertical">
  5. <TextView
  6. android:layout_width="wrap_content"
  7. android:layout_height="wrap_content"
  8. android:paddingTop="10dp"
  9. android:layout_gravity="center"
  10. android:textAppearance="?android:attr/textAppearanceLarge"
  11. android:text="GeoFence" />
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:paddingLeft="20dp"
  16. android:paddingRight="20dp"
  17. android:orientation="vertical">
  18. <ScrollView
  19. android:layout_width="match_parent"
  20. android:layout_height="100dp">
  21. <TextView
  22. android:id="@+id/GeoFenceData"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:layout_gravity="top"
  26. android:layout_weight="4"
  27. android:scrollbars="vertical"
  28. android:hint="see the Geofence which wait to add"
  29. android:paddingTop="10dp" />
  30. </ScrollView>
  31. <Button
  32. android:id="@+id/CreateGeofence"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:text="Add Geofence" />
  36. <Button
  37. android:id="@+id/removeGeofence"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:text="remove all Geofence" />
  41. <Button
  42. android:id="@+id/getGeoFenceData"
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:text="get GeoFence Data" />
  46. <LinearLayout
  47. android:paddingTop="10dp"
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:orientation="horizontal">
  51. <TextView
  52. android:layout_width="0dp"
  53. android:layout_height="wrap_content"
  54. android:layout_weight="1"
  55. android:gravity="center"
  56. android:paddingTop="10dp"
  57. android:text="Trigger" />
  58. <LinearLayout
  59. android:paddingLeft="10dp"
  60. android:layout_width="0dp"
  61. android:layout_weight="3"
  62. android:layout_height="wrap_content"
  63. android:orientation="vertical">
  64. <EditText
  65. android:id="@+id/trigger"
  66. android:layout_width="fill_parent"
  67. android:layout_height="wrap_content"
  68. android:inputType="number"
  69. android:hint="input trigger"/>
  70. </LinearLayout>
  71. </LinearLayout>
  72. <ScrollView
  73. android:layout_width="match_parent"
  74. android:layout_height="120dp">
  75. <TextView
  76. android:hint="see the Geofence which already send the request"
  77. android:id="@+id/GeoRequestData"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content"
  80. android:layout_gravity="top"
  81. android:layout_weight="4"
  82. android:paddingTop="10dp" />
  83. </ScrollView>
  84. <ScrollView
  85. android:layout_width="match_parent"
  86. android:layout_height="match_parent">
  87. <LinearLayout
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:orientation="vertical">
  91. <LinearLayout
  92. android:paddingTop="10dp"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:orientation="horizontal">
  96. <Button
  97. android:id="@+id/sendRequest"
  98. android:layout_width="0dp"
  99. android:layout_height="match_parent"
  100. android:layout_weight="1"
  101. android:text="Send Request with pendingIntent" />
  102. <Button
  103. android:id="@+id/sendRequestWithNew"
  104. android:layout_width="0dp"
  105. android:layout_height="match_parent"
  106. android:layout_weight="1"
  107. android:text="Send with new pendingIntent" />
  108. </LinearLayout>
  109. <Button
  110. android:id="@+id/GetRequestMessage"
  111. android:layout_width="match_parent"
  112. android:layout_height="wrap_content"
  113. android:text="Get Request Message" />
  114. <LinearLayout
  115. android:paddingTop="10dp"
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:orientation="horizontal">
  119. <TextView
  120. android:layout_width="0dp"
  121. android:layout_weight="1"
  122. android:layout_height="wrap_content"
  123. android:gravity="center"
  124. android:paddingTop="10dp"
  125. android:text="removeWithPendingIntent"
  126. />
  127. <LinearLayout
  128. android:paddingLeft="10dp"
  129. android:layout_width="0dp"
  130. android:layout_weight="3"
  131. android:layout_height="wrap_content"
  132. android:orientation="vertical">
  133. <EditText
  134. android:id="@+id/removeWithPendingIntentInput"
  135. android:layout_width="fill_parent"
  136. android:layout_height="wrap_content"
  137. android:inputType="number"
  138. android:hint="input pengdingIntent"/>
  139. </LinearLayout>
  140. </LinearLayout>
  141. <LinearLayout
  142. android:paddingTop="10dp"
  143. android:layout_width="match_parent"
  144. android:layout_height="wrap_content"
  145. android:orientation="horizontal">
  146. <TextView
  147. android:layout_width="0dp"
  148. android:layout_weight="1"
  149. android:layout_height="wrap_content"
  150. android:gravity="center"
  151. android:paddingTop="10dp"
  152. android:text="removeWithID"
  153. />
  154. <LinearLayout
  155. android:paddingLeft="10dp"
  156. android:layout_width="0dp"
  157. android:layout_weight="3"
  158. android:layout_height="wrap_content"
  159. android:orientation="vertical">
  160. <EditText
  161. android:id="@+id/removeWithIDInput"
  162. android:layout_width="fill_parent"
  163. android:layout_height="wrap_content"
  164. android:hint="Input fence ID"
  165. android:inputType="text" />
  166. </LinearLayout>
  167. </LinearLayout>
  168. <LinearLayout
  169. android:paddingTop="10dp"
  170. android:layout_width="match_parent"
  171. android:layout_height="wrap_content"
  172. android:orientation="horizontal">
  173. <Button
  174. android:id="@+id/removeWithIntent"
  175. android:layout_width="0dp"
  176. android:layout_height="match_parent"
  177. android:layout_weight="1"
  178. android:text="Remove With Intent" />
  179. <Button
  180. android:id="@+id/removeWithID"
  181. android:layout_width="0dp"
  182. android:layout_height="match_parent"
  183. android:layout_weight="1"
  184. android:text="Remove With ID" />
  185. </LinearLayout>
  186. <FrameLayout
  187. android:id="@+id/framelog"
  188. android:layout_width="match_parent"
  189. android:layout_height="match_parent"
  190. android:layout_marginTop="5dp"/>
  191. </LinearLayout>
  192. </ScrollView>
  193. </LinearLayout>
  194. </LinearLayout>