pan_tilt.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="400px" android:layout_height="300px" android:id="@+id/pan_tilt_layout">
  4. <ImageView android:id="@+id/background" android:src="@drawable/background"
  5. android:layout_width="wrap_content" android:layout_height="wrap_content"
  6. android:layout_centerInParent="true" />
  7. <ImageView android:id="@+id/pt_outline" android:src="@drawable/pt_bg"
  8. android:layout_width="wrap_content" android:layout_height="wrap_content"
  9. android:layout_centerInParent="true" />
  10. <ImageView android:id="@+id/pt_home_marker" android:src="@drawable/pt_home_marker"
  11. android:layout_width="wrap_content" android:layout_height="wrap_content"
  12. android:layout_centerInParent="true" android:translationX="15px"
  13. android:translationY="-24px" android:alpha="0.6" />
  14. <ImageView android:id="@+id/pt_divet" android:src="@drawable/pan_tilt_controller"
  15. android:layout_width="wrap_content" android:layout_height="wrap_content"
  16. android:layout_centerInParent="true" android:translationX="15px"
  17. android:translationY="-24px" />
  18. <!-- Small Pan marker 0 (left most) -->
  19. <ImageView android:id="@+id/pan_small_marker_0" android:src="@drawable/small_pan_marker_3"
  20. android:layout_width="wrap_content" android:layout_height="wrap_content"
  21. android:layout_centerInParent="true" android:translationX="-102px"
  22. android:translationY="-122px" />
  23. <!-- Small Pan marker 1 -->
  24. <ImageView android:id="@+id/pan_small_marker_1" android:src="@drawable/small_pan_marker_3"
  25. android:layout_width="wrap_content" android:layout_height="wrap_content"
  26. android:layout_centerInParent="true" android:translationX="-76px"
  27. android:translationY="-122px" />
  28. <!-- Small Pan marker 2 -->
  29. <ImageView android:id="@+id/pan_small_marker_2" android:src="@drawable/small_pan_marker_3"
  30. android:layout_width="wrap_content" android:layout_height="wrap_content"
  31. android:layout_centerInParent="true" android:translationX="-50px"
  32. android:translationY="-122px" />
  33. <!-- Small Pan marker 3 -->
  34. <ImageView android:id="@+id/pan_small_marker_3" android:src="@drawable/small_pan_marker_3"
  35. android:layout_width="wrap_content" android:layout_height="wrap_content"
  36. android:layout_centerInParent="true" android:translationX="-24px"
  37. android:translationY="-122px" />
  38. <!-- Small Pan marker 4 -->
  39. <ImageView android:id="@+id/pan_small_marker_4" android:src="@drawable/small_pan_marker_3"
  40. android:layout_width="wrap_content" android:layout_height="wrap_content"
  41. android:layout_centerInParent="true" android:translationX="2px"
  42. android:translationY="-122px" />
  43. <!-- Small Pan marker 5 -->
  44. <ImageView android:id="@+id/pan_small_marker_5" android:src="@drawable/small_pan_marker_3"
  45. android:layout_width="wrap_content" android:layout_height="wrap_content"
  46. android:layout_centerInParent="true" android:translationX="28px"
  47. android:translationY="-122px" />
  48. <!-- Small Pan marker 6 -->
  49. <ImageView android:id="@+id/pan_small_marker_6" android:src="@drawable/small_pan_marker_3"
  50. android:layout_width="wrap_content" android:layout_height="wrap_content"
  51. android:layout_centerInParent="true" android:translationX="54px"
  52. android:translationY="-122px" />
  53. <!-- Small Pan marker 7 -->
  54. <ImageView android:id="@+id/pan_small_marker_7" android:src="@drawable/small_pan_marker_3"
  55. android:layout_width="wrap_content" android:layout_height="wrap_content"
  56. android:layout_centerInParent="true" android:translationX="80px"
  57. android:translationY="-122px" />
  58. <!-- Small Pan marker 8 -->
  59. <ImageView android:id="@+id/pan_small_marker_8" android:src="@drawable/small_pan_marker_3"
  60. android:layout_width="wrap_content" android:layout_height="wrap_content"
  61. android:layout_centerInParent="true" android:translationX="106px"
  62. android:translationY="-122px" />
  63. <!-- Small Pan marker 9 (right most) -->
  64. <ImageView android:id="@+id/pan_small_marker_9" android:src="@drawable/small_pan_marker_3"
  65. android:layout_width="wrap_content" android:layout_height="wrap_content"
  66. android:layout_centerInParent="true" android:translationX="133px"
  67. android:translationY="-122px" />
  68. <!-- Large Pan marker 0 (left most) -->
  69. <ImageView android:id="@+id/pan_large_marker_0" android:src="@drawable/large_pan_marker_3"
  70. android:layout_width="wrap_content" android:layout_height="wrap_content"
  71. android:layout_centerInParent="true" android:translationX="-102px"
  72. android:translationY="-130px" />
  73. <!-- Large Pan marker 1 -->
  74. <ImageView android:id="@+id/pan_large_marker_1" android:src="@drawable/large_pan_marker_3"
  75. android:layout_width="wrap_content" android:layout_height="wrap_content"
  76. android:layout_centerInParent="true" android:translationX="-76px"
  77. android:translationY="-130px" />
  78. <!-- Large Pan marker 2 -->
  79. <ImageView android:id="@+id/pan_large_marker_2" android:src="@drawable/large_pan_marker_3"
  80. android:layout_width="wrap_content" android:layout_height="wrap_content"
  81. android:layout_centerInParent="true" android:translationX="-50px"
  82. android:translationY="-130px" />
  83. <!-- Large Pan marker 3 -->
  84. <ImageView android:id="@+id/pan_large_marker_3" android:src="@drawable/large_pan_marker_3"
  85. android:layout_width="wrap_content" android:layout_height="wrap_content"
  86. android:layout_centerInParent="true" android:translationX="-24px"
  87. android:translationY="-130px" />
  88. <!-- Large Pan marker 4 -->
  89. <ImageView android:id="@+id/pan_large_marker_4" android:src="@drawable/large_pan_marker_3"
  90. android:layout_width="wrap_content" android:layout_height="wrap_content"
  91. android:layout_centerInParent="true" android:translationX="2px"
  92. android:translationY="-130px" />
  93. <!-- Large Pan marker 5 -->
  94. <ImageView android:id="@+id/pan_large_marker_5" android:src="@drawable/large_pan_marker_3"
  95. android:layout_width="wrap_content" android:layout_height="wrap_content"
  96. android:layout_centerInParent="true" android:translationX="28px"
  97. android:translationY="-130px" />
  98. <!-- Large Pan marker 6 -->
  99. <ImageView android:id="@+id/pan_large_marker_6" android:src="@drawable/large_pan_marker_3"
  100. android:layout_width="wrap_content" android:layout_height="wrap_content"
  101. android:layout_centerInParent="true" android:translationX="54px"
  102. android:translationY="-130px" />
  103. <!-- Large Pan marker 7 -->
  104. <ImageView android:id="@+id/pan_large_marker_7" android:src="@drawable/large_pan_marker_3"
  105. android:layout_width="wrap_content" android:layout_height="wrap_content"
  106. android:layout_centerInParent="true" android:translationX="80px"
  107. android:translationY="-130px" />
  108. <!-- Large Pan marker 8 -->
  109. <ImageView android:id="@+id/pan_large_marker_8" android:src="@drawable/large_pan_marker_3"
  110. android:layout_width="wrap_content" android:layout_height="wrap_content"
  111. android:layout_centerInParent="true" android:translationX="106px"
  112. android:translationY="-130px" />
  113. <!-- Large Pan marker 9 (right most) -->
  114. <ImageView android:id="@+id/pan_large_marker_9" android:src="@drawable/large_pan_marker_3"
  115. android:layout_width="wrap_content" android:layout_height="wrap_content"
  116. android:layout_centerInParent="true" android:translationX="133px"
  117. android:translationY="-130px" />
  118. <!-- Small Tilt marker 0 (top most) -->
  119. <ImageView android:id="@+id/tilt_small_marker_0" android:src="@drawable/small_tilt_marker_3"
  120. android:layout_width="wrap_content" android:layout_height="wrap_content"
  121. android:layout_centerInParent="true" android:translationX="172px"
  122. android:translationY="-82px" />
  123. <!-- Small Tilt marker 1 -->
  124. <ImageView android:id="@+id/tilt_small_marker_1" android:src="@drawable/small_tilt_marker_3"
  125. android:layout_width="wrap_content" android:layout_height="wrap_content"
  126. android:layout_centerInParent="true" android:translationX="172px"
  127. android:translationY="-51px" />
  128. <!-- Small Tilt marker 2 -->
  129. <ImageView android:id="@+id/tilt_small_marker_2" android:src="@drawable/small_tilt_marker_3"
  130. android:layout_width="wrap_content" android:layout_height="wrap_content"
  131. android:layout_centerInParent="true" android:translationX="172px"
  132. android:translationY="-20px" />
  133. <!-- Small Tilt marker 3 -->
  134. <ImageView android:id="@+id/tilt_small_marker_3" android:src="@drawable/small_tilt_marker_3"
  135. android:layout_width="wrap_content" android:layout_height="wrap_content"
  136. android:layout_centerInParent="true" android:translationX="172px"
  137. android:translationY="11px" />
  138. <!-- Small Tilt marker 4 -->
  139. <ImageView android:id="@+id/tilt_small_marker_4" android:src="@drawable/small_tilt_marker_3"
  140. android:layout_width="wrap_content" android:layout_height="wrap_content"
  141. android:layout_centerInParent="true" android:translationX="172px"
  142. android:translationY="42px" />
  143. <!-- Small Tilt marker 5 -->
  144. <ImageView android:id="@+id/tilt_small_marker_5" android:src="@drawable/small_tilt_marker_3"
  145. android:layout_width="wrap_content" android:layout_height="wrap_content"
  146. android:layout_centerInParent="true" android:translationX="172px"
  147. android:translationY="73px" />
  148. <!-- Small Tilt marker 6 (bottom most) -->
  149. <ImageView android:id="@+id/tilt_small_marker_6" android:src="@drawable/small_tilt_marker_3"
  150. android:layout_width="wrap_content" android:layout_height="wrap_content"
  151. android:layout_centerInParent="true" android:translationX="172px"
  152. android:translationY="105px" />
  153. <!-- Large Tilt marker 0 (top most) -->
  154. <ImageView android:id="@+id/tilt_large_marker_0" android:src="@drawable/large_tilt_marker_3"
  155. android:layout_width="wrap_content" android:layout_height="wrap_content"
  156. android:layout_centerInParent="true" android:translationX="180px"
  157. android:translationY="-82px" />
  158. <!-- Large Tilt marker 1 -->
  159. <ImageView android:id="@+id/tilt_large_marker_1" android:src="@drawable/large_tilt_marker_3"
  160. android:layout_width="wrap_content" android:layout_height="wrap_content"
  161. android:layout_centerInParent="true" android:translationX="180px"
  162. android:translationY="-51px" />
  163. <!-- Large Tilt marker 2 -->
  164. <ImageView android:id="@+id/tilt_large_marker_2" android:src="@drawable/large_tilt_marker_3"
  165. android:layout_width="wrap_content" android:layout_height="wrap_content"
  166. android:layout_centerInParent="true" android:translationX="180px"
  167. android:translationY="-20px" />
  168. <!-- Large Tilt marker 3 -->
  169. <ImageView android:id="@+id/tilt_large_marker_3" android:src="@drawable/large_tilt_marker_3"
  170. android:layout_width="wrap_content" android:layout_height="wrap_content"
  171. android:layout_centerInParent="true" android:translationX="180px"
  172. android:translationY="11px" />
  173. <!-- Large Tilt marker 4 -->
  174. <ImageView android:id="@+id/tilt_large_marker_4" android:src="@drawable/large_tilt_marker_3"
  175. android:layout_width="wrap_content" android:layout_height="wrap_content"
  176. android:layout_centerInParent="true" android:translationX="180px"
  177. android:translationY="42px" />
  178. <!-- Large Tilt marker 5 -->
  179. <ImageView android:id="@+id/tilt_large_marker_5" android:src="@drawable/large_tilt_marker_3"
  180. android:layout_width="wrap_content" android:layout_height="wrap_content"
  181. android:layout_centerInParent="true" android:translationX="180px"
  182. android:translationY="73px" />
  183. <!-- Large Tilt marker 6 (bottom most) -->
  184. <ImageView android:id="@+id/tilt_large_marker_6" android:src="@drawable/large_tilt_marker_3"
  185. android:layout_width="wrap_content" android:layout_height="wrap_content"
  186. android:layout_centerInParent="true" android:translationX="180px"
  187. android:translationY="105px" />
  188. <!-- Horizon -->
  189. <ImageView android:id="@+id/horizon" android:src="@drawable/horizon_original"
  190. android:layout_width="wrap_content" android:layout_height="wrap_content"
  191. android:layout_centerInParent="true" android:scaleX="0.71" android:scaleY="0.7"
  192. android:translationX="16px" android:translationY="27px" />
  193. <!-- Zoom shell -->
  194. <ImageView android:id="@+id/pan_tilt_zoom_shell" android:src="@drawable/zoom_bg"
  195. android:layout_width="wrap_content" android:layout_height="wrap_content"
  196. android:scaleY="0.82" android:translationY="12px" />
  197. <!-- Top zoom in (not pressed) -->
  198. <ImageView android:id="@+id/zoom_in_button_not_pressed" android:src="@drawable/zoom_in_normal"
  199. android:layout_width="wrap_content" android:layout_height="wrap_content"
  200. android:layout_centerInParent="true" android:translationX="-165px"
  201. android:translationY="-75px" />
  202. <!-- Top zoom out (not pressed) -->
  203. <ImageView android:id="@+id/zoom_out_button_not_pressed"
  204. android:src="@drawable/zoom_out_normal" android:layout_width="wrap_content"
  205. android:layout_height="wrap_content" android:layout_centerInParent="true"
  206. android:translationX="-165px" android:translationY="103px" />
  207. <!-- Non-lit zoom bar 0 (top) -->
  208. <ImageView android:id="@+id/zoom_bar_notlit_0" android:src="@drawable/zoom_bar_notlit"
  209. android:layout_width="wrap_content" android:layout_height="wrap_content"
  210. android:translationX="12px" android:translationY="105px" />
  211. <!-- Non-lit zoom bar 1 -->
  212. <ImageView android:id="@+id/zoom_bar_notlit_1" android:src="@drawable/zoom_bar_notlit"
  213. android:layout_width="wrap_content" android:layout_height="wrap_content"
  214. android:translationX="12px" android:translationY="130px" />
  215. <!-- Non-lit zoom bar 2 -->
  216. <ImageView android:id="@+id/zoom_bar_notlit_2" android:src="@drawable/zoom_bar_notlit"
  217. android:layout_width="wrap_content" android:layout_height="wrap_content"
  218. android:translationX="12px" android:translationY="155px" />
  219. <!-- Non-lit zoom bar 3 -->
  220. <ImageView android:id="@+id/zoom_bar_notlit_3" android:src="@drawable/zoom_bar_notlit"
  221. android:layout_width="wrap_content" android:layout_height="wrap_content"
  222. android:translationX="12px" android:translationY="180px" />
  223. <!-- Non-lit zoom bar 4 (bottom) -->
  224. <ImageView android:id="@+id/zoom_bar_notlit_4" android:src="@drawable/zoom_bar_notlit"
  225. android:layout_width="wrap_content" android:layout_height="wrap_content"
  226. android:translationX="12px" android:translationY="205px" />
  227. <!-- Lit zoom bar 0 (top) -->
  228. <ImageView android:id="@+id/zoom_bar_lit_0" android:src="@drawable/zoom_bar_lit"
  229. android:layout_width="wrap_content" android:layout_height="wrap_content"
  230. android:translationX="12px" android:translationY="105px" android:visibility="invisible" />
  231. <!-- Lit zoom bar 1 -->
  232. <ImageView android:id="@+id/zoom_bar_lit_1" android:src="@drawable/zoom_bar_lit"
  233. android:layout_width="wrap_content" android:layout_height="wrap_content"
  234. android:translationX="12px" android:translationY="130px" android:visibility="invisible" />
  235. <!-- Lit zoom bar 2 -->
  236. <ImageView android:id="@+id/zoom_bar_lit_2" android:src="@drawable/zoom_bar_lit"
  237. android:layout_width="wrap_content" android:layout_height="wrap_content"
  238. android:translationX="12px" android:translationY="155px" android:visibility="invisible" />
  239. <!-- Lit zoom bar 3 -->
  240. <ImageView android:id="@+id/zoom_bar_lit_3" android:src="@drawable/zoom_bar_lit"
  241. android:layout_width="wrap_content" android:layout_height="wrap_content"
  242. android:translationX="12px" android:translationY="180px" android:visibility="invisible" />
  243. <!-- Lit zoom bar 4 (bottom) -->
  244. <ImageView android:id="@+id/zoom_bar_lit_4" android:src="@drawable/zoom_bar_lit"
  245. android:layout_width="wrap_content" android:layout_height="wrap_content"
  246. android:translationX="12px" android:translationY="205px" android:visibility="invisible" />
  247. </RelativeLayout>