activity_main.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. tools:context=".MainActivity"
  6. android:background="#fff">
  7. <ImageView
  8. android:layout_width="fill_parent"
  9. android:layout_height="0dp"
  10. android:id="@+id/main_action_bar_placeholder"
  11. android:layout_alignParentTop="true"
  12. android:background="#E46C62"/>
  13. <LinearLayout
  14. android:orientation="vertical"
  15. android:layout_width="match_parent"
  16. android:layout_height="fill_parent"
  17. android:id="@+id/layout_header"
  18. android:layout_above="@+id/layout_control"
  19. android:background="#E46C62"
  20. android:layout_marginBottom="12dp">
  21. <TextView
  22. android:id="@+id/textView"
  23. android:layout_width="fill_parent"
  24. android:layout_height="wrap_content"
  25. android:layout_marginTop="40dp"
  26. android:gravity="center_vertical|center_horizontal"
  27. android:text="@string/app_name"
  28. android:textColor="#fff"
  29. android:textIsSelectable="false"
  30. android:textSize="28dp" />
  31. <TextView android:layout_width="fill_parent"
  32. android:layout_height="wrap_content"
  33. android:id="@+id/textView5"
  34. android:text="@string/app_version"
  35. android:textColor="#fff"
  36. android:gravity="center_vertical|center_horizontal"
  37. android:layout_marginTop="4dp"/>
  38. </LinearLayout>
  39. <ImageView
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:background="@mipmap/bg_snow"
  43. android:id="@+id/main_bg_snow"
  44. android:layout_alignBottom="@id/layout_header"/>
  45. <LinearLayout android:id="@+id/layout_control"
  46. android:orientation="horizontal"
  47. android:layout_width="match_parent"
  48. android:layout_height="110dp"
  49. android:layout_above="@+id/layout_uber"
  50. android:layout_marginLeft="12dp"
  51. android:layout_marginRight="12dp"
  52. android:layout_marginTop="8dp"
  53. android:layout_marginBottom="8dp" android:baselineAligned="false">
  54. <LinearLayout style="?android:attr/borderlessButtonStyle"
  55. android:id="@+id/layout_control_community"
  56. android:layout_width="fill_parent"
  57. android:layout_height="fill_parent"
  58. android:background="#ffffff"
  59. android:textColor="#858585"
  60. android:textSize="20sp"
  61. android:orientation="vertical"
  62. android:layout_weight="0.35"
  63. android:layout_marginRight="5dp"
  64. android:onClick="openGitHub" android:layout_marginEnd="5dp">
  65. <ImageView
  66. android:layout_width="24dp"
  67. android:layout_height="24dp"
  68. android:id="@+id/imageView"
  69. android:src="@mipmap/ic_community"
  70. android:layout_margin="10dp"/>
  71. <TextView
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:text="@string/community"
  75. android:id="@+id/textView2"
  76. android:layout_margin="5dp"
  77. android:textColor="#858585" android:textSize="16sp" android:textStyle="bold"/>
  78. </LinearLayout>
  79. <LinearLayout
  80. android:id="@+id/layout_control_accessibility"
  81. style="?android:attr/borderlessButtonStyle"
  82. android:layout_width="fill_parent"
  83. android:layout_height="fill_parent"
  84. android:layout_marginLeft="5dp"
  85. android:layout_marginRight="5dp"
  86. android:layout_weight="0.3"
  87. android:background="#ffffff"
  88. android:onClick="openAccessibility"
  89. android:textColor="#858585"
  90. android:textSize="20sp">
  91. <ImageView
  92. android:id="@+id/layout_control_accessibility_icon"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_marginBottom="6dp"
  96. android:layout_marginTop="6dp"
  97. android:background="@mipmap/ic_start"
  98. android:baselineAligned="false" />
  99. <TextView
  100. android:id="@+id/layout_control_accessibility_text"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_margin="5dp"
  104. android:text="@string/service_on"
  105. android:textColor="#dfaa6a"
  106. android:textSize="16sp"
  107. android:textStyle="bold" />
  108. </LinearLayout>
  109. <LinearLayout style="?android:attr/borderlessButtonStyle"
  110. android:id="@+id/layout_control_settings"
  111. android:layout_width="fill_parent"
  112. android:layout_height="fill_parent"
  113. android:background="#ffffff"
  114. android:textColor="#858585"
  115. android:textSize="20sp"
  116. android:orientation="vertical"
  117. android:layout_weight="0.35"
  118. android:layout_marginLeft="5dp"
  119. android:onClick="openSettings" android:layout_marginStart="5dp">
  120. <ImageView android:layout_width="24dp"
  121. android:layout_height="24dp"
  122. android:id="@+id/imageView4"
  123. android:layout_margin="10dp"
  124. android:src="@mipmap/ic_settings"/>
  125. <TextView android:layout_width="wrap_content"
  126. android:layout_height="wrap_content"
  127. android:text="@string/settings"
  128. android:id="@+id/textView3"
  129. android:layout_margin="5dp"
  130. android:textColor="#858585" android:textSize="16sp" android:textStyle="bold"/>
  131. </LinearLayout>
  132. </LinearLayout>
  133. <LinearLayout
  134. android:id="@+id/layout_uber"
  135. android:orientation="horizontal"
  136. android:layout_width="match_parent"
  137. android:layout_height="72dp"
  138. android:layout_marginLeft="12dp"
  139. android:layout_marginRight="12dp"
  140. android:background="#ffffff"
  141. android:layout_marginTop="8dp"
  142. android:layout_alignParentBottom="false"
  143. android:layout_above="@+id/linearLayout2"
  144. android:layout_marginBottom="8dp"
  145. android:onClick="openUber">
  146. <ImageView
  147. android:layout_width="60dp"
  148. android:layout_height="60dp"
  149. android:id="@+id/icon_uber"
  150. android:src="@mipmap/ic_uber"
  151. android:layout_marginLeft="8dp"
  152. android:layout_marginRight="10dp"
  153. android:layout_gravity="center_vertical"
  154. android:layout_marginBottom="2dp" android:layout_marginStart="8dp" android:layout_marginEnd="10dp"/>
  155. <LinearLayout
  156. android:orientation="vertical"
  157. android:layout_width="match_parent"
  158. android:layout_height="wrap_content"
  159. android:id="@+id/layout_uber_text"
  160. android:layout_gravity="center_vertical">
  161. <TextView
  162. android:layout_width="wrap_content"
  163. android:layout_height="wrap_content"
  164. android:text="@string/uber_ad_title"
  165. android:id="@+id/label_uber_text"
  166. android:layout_margin="2dp"
  167. android:textColor="#858585"/>
  168. <TextView android:layout_width="wrap_content"
  169. android:layout_height="wrap_content"
  170. android:text="@string/uber_ad_text"
  171. android:id="@+id/label_uber_link"
  172. android:layout_margin="2dp"
  173. android:textColor="#dfaa6a" android:textStyle="bold"/>
  174. </LinearLayout>
  175. </LinearLayout>
  176. <LinearLayout android:id="@+id/linearLayout2"
  177. android:orientation="horizontal"
  178. android:layout_width="match_parent"
  179. android:layout_height="40dp"
  180. android:layout_marginLeft="12dp"
  181. android:layout_marginRight="12dp"
  182. android:background="#ffffff"
  183. android:layout_marginTop="8dp"
  184. android:layout_marginBottom="24dp"
  185. android:onClick="openGitHub"
  186. android:layout_alignParentBottom="true">
  187. <ImageView android:layout_width="20dp"
  188. android:layout_height="20dp"
  189. android:id="@+id/imageView2"
  190. android:src="@mipmap/ic_github"
  191. android:layout_marginLeft="15dp"
  192. android:layout_marginRight="5dp"
  193. android:layout_gravity="center_vertical" android:layout_marginStart="15dp" android:layout_marginEnd="5dp"/>
  194. <TextView android:layout_width="wrap_content"
  195. android:layout_height="wrap_content"
  196. android:text="@string/github_1"
  197. android:id="@+id/textView6"
  198. android:layout_margin="2dp"
  199. android:textColor="#858585"
  200. android:layout_gravity="center_vertical"/>
  201. <TextView android:layout_width="wrap_content"
  202. android:layout_height="wrap_content"
  203. android:text="@string/star_1"
  204. android:id="@+id/textView7"
  205. android:textColor="#dfaa6a"
  206. android:layout_gravity="center_vertical"
  207. android:paddingBottom="1dp"/>
  208. <TextView android:layout_width="wrap_content"
  209. android:layout_height="wrap_content"
  210. android:id="@+id/textView8"
  211. android:text="@string/star_2"
  212. android:textColor="#dfaa6a"
  213. android:layout_gravity="center_vertical"
  214. android:layout_marginLeft="2dp"
  215. android:layout_marginRight="2dp" android:textStyle="bold"/>
  216. <TextView android:layout_width="wrap_content"
  217. android:layout_height="wrap_content"
  218. android:text="@string/github_2"
  219. android:id="@+id/textView9"
  220. android:layout_margin="2dp"
  221. android:textColor="#858585"
  222. android:layout_gravity="center_vertical"/>
  223. </LinearLayout>
  224. </RelativeLayout>