geofence.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical" >
  6. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="244dp"
  9. android:layout_weight="0.01"
  10. android:orientation="horizontal" >
  11. <LinearLayout
  12. android:layout_width="195dp"
  13. android:layout_height="wrap_content"
  14. android:orientation="vertical" >
  15. <LinearLayout
  16. android:layout_width="150dp"
  17. android:layout_height="wrap_content"
  18. android:orientation="horizontal" >
  19. <TextView
  20. android:id="@+id/textView1"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:text="围栏id"
  24. android:textAppearance="?android:attr/textAppearanceMedium" />
  25. <EditText
  26. android:id="@+id/geoid"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_weight="1"
  30. android:ems="10"
  31. android:text="geofence" />
  32. </LinearLayout>
  33. <LinearLayout
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:orientation="horizontal" >
  37. <TextView
  38. android:id="@+id/textView2"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:text="经度"
  42. android:textAppearance="?android:attr/textAppearanceMedium" />
  43. <EditText
  44. android:id="@+id/geolontitude"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:text="116.313122" >
  48. <requestFocus />
  49. </EditText>
  50. </LinearLayout>
  51. <LinearLayout
  52. android:layout_width="match_parent"
  53. android:layout_height="wrap_content"
  54. android:orientation="horizontal" >
  55. <TextView
  56. android:id="@+id/TextView02"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:text="纬度"
  60. android:textAppearance="?android:attr/textAppearanceMedium" />
  61. <EditText
  62. android:id="@+id/geolatitude"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:layout_weight="1"
  66. android:text="40.047951" />
  67. </LinearLayout>
  68. <LinearLayout
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:orientation="vertical" >
  72. <TextView
  73. android:id="@+id/TextView01"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="围栏持续时间(ms)"
  77. android:textAppearance="?android:attr/textAppearanceMedium" />
  78. <EditText
  79. android:id="@+id/geoduration"
  80. android:layout_width="match_parent"
  81. android:layout_height="wrap_content"
  82. android:layout_weight="1"
  83. android:inputType="numberDecimal"
  84. android:text="36000000" />
  85. </LinearLayout>
  86. <LinearLayout
  87. android:layout_width="match_parent"
  88. android:layout_height="wrap_content"
  89. android:orientation="horizontal" >
  90. <Button
  91. android:id="@+id/addfence"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:text="添加围栏" />
  95. <Button
  96. android:id="@+id/removefence"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:text="删除围栏" />
  100. </LinearLayout>
  101. </LinearLayout>
  102. <LinearLayout
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content"
  105. android:orientation="vertical" >
  106. <ListView
  107. android:id="@+id/geolist"
  108. android:layout_width="match_parent"
  109. android:layout_height="match_parent" >
  110. </ListView>
  111. </LinearLayout>
  112. </LinearLayout>
  113. <LinearLayout
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. android:layout_weight="0.05"
  117. android:orientation="vertical" >
  118. <TextView
  119. android:id="@+id/textView3"
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:text="日志:"
  123. android:textAppearance="?android:attr/textAppearanceLarge" />
  124. <TextView
  125. android:id="@+id/geofencelog"
  126. android:layout_width="match_parent"
  127. android:layout_height="match_parent"
  128. android:text=" "
  129. android:textAppearance="?android:attr/textAppearanceLarge" />
  130. </LinearLayout>
  131. </LinearLayout>