main_home.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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. android:background="#FFEEEEEE" >
  6. <ScrollView
  7. android:id="@+id/main_home_scroller"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:layout_margin="@dimen/activity_margin" >
  11. <LinearLayout
  12. android:id="@+id/main_home"
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:orientation="vertical" >
  16. <LinearLayout
  17. android:id="@+id/main_home_target_body"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_marginBottom="@dimen/card_margin"
  21. android:background="@drawable/frame"
  22. android:orientation="vertical" >
  23. <TextView
  24. android:id="@+id/main_home_target_heading"
  25. android:layout_width="fill_parent"
  26. android:layout_height="wrap_content"
  27. android:layout_margin="@dimen/title_margin"
  28. android:gravity="center"
  29. android:text="App Properties"
  30. android:textSize="26sp"
  31. android:textStyle="bold" />
  32. <LinearLayout
  33. android:id="@+id/main_home_target_content"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:layout_marginBottom="@dimen/content_margin_bottom"
  37. android:layout_marginLeft="@dimen/content_margin_horizontal"
  38. android:layout_marginRight="@dimen/content_margin_horizontal"
  39. android:orientation="horizontal"
  40. android:weightSum="1.0" >
  41. <LinearLayout
  42. android:id="@+id/main_home_target_info"
  43. android:layout_width="0dp"
  44. android:layout_height="wrap_content"
  45. android:layout_weight=".6"
  46. android:orientation="vertical" >
  47. <TextView
  48. android:id="@+id/main_home_target_info_title_title"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:padding="3dp"
  52. android:text="App Title:"
  53. android:textSize="18sp" />
  54. <TextView
  55. android:id="@+id/main_home_target_info_title"
  56. android:layout_width="fill_parent"
  57. android:layout_height="wrap_content"
  58. android:layout_marginLeft="9dp"
  59. android:layout_marginRight="9dp"
  60. android:ellipsize="marquee"
  61. android:fadingEdge="horizontal"
  62. android:marqueeRepeatLimit="marquee_forever"
  63. android:padding="3dp"
  64. android:scrollHorizontally="true"
  65. android:singleLine="true"
  66. android:text="@string/default_target_title"
  67. android:textSize="15sp" />
  68. <View
  69. android:layout_width="fill_parent"
  70. android:layout_height="3dp" />
  71. <TextView
  72. android:id="@+id/main_home_target_info_location_title"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:padding="3dp"
  76. android:text="App Target:"
  77. android:textSize="18sp" />
  78. <TextView
  79. android:id="@+id/main_home_target_info_location"
  80. android:layout_width="fill_parent"
  81. android:layout_height="wrap_content"
  82. android:layout_marginLeft="9dp"
  83. android:layout_marginRight="9dp"
  84. android:ellipsize="marquee"
  85. android:fadingEdge="horizontal"
  86. android:marqueeRepeatLimit="marquee_forever"
  87. android:padding="3dp"
  88. android:scrollHorizontally="true"
  89. android:singleLine="true"
  90. android:text="@string/default_target_location"
  91. android:textSize="15sp" />
  92. </LinearLayout>
  93. <org.h4e.utils.iconimport.objects.IconCanvas
  94. android:id="@+id/main_home_target_icon"
  95. android:layout_width="0dp"
  96. android:layout_height="match_parent"
  97. android:layout_marginLeft="@dimen/activity_margin"
  98. android:layout_marginStart="@dimen/activity_margin"
  99. android:layout_weight=".4" />
  100. </LinearLayout>
  101. <View
  102. android:id="@+id/main_home_target_shadow"
  103. android:layout_width="match_parent"
  104. android:layout_height="3dp"
  105. android:background="@drawable/frame_shadow" />
  106. </LinearLayout>
  107. <LinearLayout
  108. android:id="@+id/main_home_shortcut_body"
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content"
  111. android:layout_marginBottom="@dimen/card_margin"
  112. android:background="@drawable/frame"
  113. android:orientation="vertical" >
  114. <TextView
  115. android:id="@+id/main_home_shortcut_heading"
  116. android:layout_width="fill_parent"
  117. android:layout_height="wrap_content"
  118. android:layout_margin="@dimen/title_margin"
  119. android:gravity="center"
  120. android:text="Shortcut Properties"
  121. android:textSize="26sp"
  122. android:textStyle="bold" />
  123. <LinearLayout
  124. android:id="@+id/main_home_shortcut_content"
  125. android:layout_width="match_parent"
  126. android:layout_height="wrap_content"
  127. android:layout_marginBottom="@dimen/content_margin"
  128. android:layout_marginLeft="@dimen/content_margin"
  129. android:layout_marginRight="@dimen/content_margin"
  130. android:orientation="horizontal"
  131. android:weightSum="1.0" >
  132. <LinearLayout
  133. android:id="@+id/main_home_shortcut_info"
  134. android:layout_width="0dp"
  135. android:layout_height="wrap_content"
  136. android:layout_weight=".6"
  137. android:orientation="vertical" >
  138. <TextView
  139. android:id="@+id/main_home_shortcut_info_title_title"
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"
  142. android:padding="3dp"
  143. android:text="Shortcut Title:"
  144. android:textSize="18sp" />
  145. <EditText
  146. android:id="@+id/main_home_shortcut_info_title"
  147. android:layout_width="fill_parent"
  148. android:layout_height="wrap_content"
  149. android:layout_marginLeft="9dp"
  150. android:layout_marginRight="9dp"
  151. android:enabled="false"
  152. android:padding="3dp"
  153. android:text="@string/default_shortcut_title"
  154. android:textSize="12sp" />
  155. <View
  156. android:layout_width="fill_parent"
  157. android:layout_height="3dp" />
  158. <TextView
  159. android:id="@+id/main_home_shortcut_info_location_title"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:padding="3dp"
  163. android:text="Shortcut Icon:"
  164. android:textSize="18sp" />
  165. <!-- Browse - Copy - Clear -->
  166. <LinearLayout
  167. android:layout_width="fill_parent"
  168. android:layout_height="wrap_content"
  169. android:orientation="horizontal" >
  170. <Button
  171. android:id="@+id/main_home_shortcut_info_button_1"
  172. style="?android:attr/buttonBarButtonStyle"
  173. android:layout_width="0dp"
  174. android:layout_height="match_parent"
  175. android:layout_weight="1"
  176. android:onClick="showIconChooser"
  177. android:text="@string/default_shortcut_button_1"
  178. android:textSize="14sp" />
  179. <Button
  180. android:id="@+id/main_home_shortcut_info_button_2"
  181. style="?android:attr/buttonBarButtonStyle"
  182. android:layout_width="0dp"
  183. android:layout_height="match_parent"
  184. android:layout_weight="1"
  185. android:onClick="clearShortcutIcon"
  186. android:text="@string/default_shortcut_button_2"
  187. android:textSize="14sp" />
  188. </LinearLayout>
  189. </LinearLayout>
  190. <org.h4e.utils.iconimport.objects.IconCanvas
  191. android:id="@+id/main_home_shortcut_icon"
  192. android:layout_width="0dp"
  193. android:layout_height="match_parent"
  194. android:layout_marginLeft="@dimen/activity_margin"
  195. android:layout_weight=".4" />
  196. </LinearLayout>
  197. <View
  198. android:id="@+id/main_home_shortcut_shadow"
  199. android:layout_width="match_parent"
  200. android:layout_height="3dp"
  201. android:background="@drawable/frame_shadow" />
  202. </LinearLayout>
  203. <LinearLayout
  204. android:id="@+id/main_home_3"
  205. android:layout_width="match_parent"
  206. android:layout_height="wrap_content"
  207. android:background="@drawable/frame"
  208. android:orientation="vertical"
  209. android:visibility="gone" >
  210. <Button
  211. android:id="@+id/main_home_3_title"
  212. style="?android:attr/buttonBarButtonStyle"
  213. android:layout_width="fill_parent"
  214. android:layout_height="wrap_content"
  215. android:layout_margin="@dimen/activity_margin"
  216. android:gravity="center"
  217. android:onClick="createShortcut"
  218. android:text="Create Shortcut"
  219. android:textSize="26sp"
  220. android:textStyle="bold" />
  221. <View
  222. android:id="@+id/main_home_3_shadow"
  223. android:layout_width="match_parent"
  224. android:layout_height="3dp"
  225. android:background="@drawable/frame_shadow" />
  226. </LinearLayout>
  227. </LinearLayout>
  228. </ScrollView>
  229. <TextView
  230. android:id="@+id/main_home_intro"
  231. android:layout_width="fill_parent"
  232. android:layout_height="fill_parent"
  233. android:layout_above="@id/main_home_adview"
  234. android:layout_margin="@dimen/activity_margin"
  235. android:background="@drawable/frame"
  236. android:clickable="true"
  237. android:gravity="center"
  238. android:onClick="showAppChooser"
  239. android:text="Select App!"
  240. android:textSize="36sp"
  241. android:textStyle="bold" />
  242. </RelativeLayout>