activity_settings.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <LinearLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="fill_parent"
  6. android:orientation="vertical">
  7. <LinearLayout
  8. android:layout_width="fill_parent"
  9. android:layout_height="wrap_content"
  10. android:background="@color/background_menu"
  11. android:gravity="center_vertical"
  12. android:orientation="horizontal"
  13. android:padding="2dp">
  14. <ImageView
  15. android:contentDescription="@string/app_name"
  16. android:layout_width="wrap_content"
  17. android:layout_height="match_parent"
  18. android:id="@+id/iv_logo"
  19. android:src="@drawable/ic_launcher"
  20. android:adjustViewBounds="true"
  21. android:layout_weight=".2"
  22. android:maxHeight="45dp"
  23. android:maxWidth="45dp"
  24. android:padding="1dp"
  25. android:layout_gravity="center_vertical"/>
  26. <LinearLayout
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_gravity="center_vertical|center"
  30. android:layout_weight=".8"
  31. android:gravity="center"
  32. android:orientation="vertical" >
  33. <TextView
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:gravity="center"
  37. android:text="@string/app_name"
  38. android:contentDescription="@string/app_name"
  39. android:textSize="18sp"
  40. android:textStyle="bold"
  41. android:textColor="@color/menu_entry"/>
  42. <TextView
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:gravity="center"
  46. android:text="@string/menu_settings"
  47. android:textSize="20sp"
  48. android:textColor="@color/menu_entry"/>
  49. </LinearLayout>
  50. <ImageButton
  51. android:id="@+id/bt_back"
  52. android:layout_width="40dp"
  53. android:layout_height="match_parent"
  54. android:layout_weight=".2"
  55. android:background="#00000000"
  56. android:contentDescription="@android:string/yes"
  57. android:onClick="finish"
  58. android:src="@android:drawable/ic_menu_revert"/>
  59. </LinearLayout>
  60. <ScrollView
  61. android:layout_width="fill_parent"
  62. android:layout_height="wrap_content"
  63. android:background="@color/background_app">
  64. <LinearLayout
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. tools:ignore="ScrollViewSize"
  68. android:background="@color/background_app"
  69. android:orientation="vertical">
  70. <TextView
  71. android:text="@string/preferences_sync"
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content"
  74. android:textStyle="bold"
  75. android:textColor="@color/background_menu"
  76. android:paddingEnd="10dp"
  77. android:paddingLeft="10dp"
  78. android:paddingRight="10dp"
  79. android:paddingStart="10dp"
  80. android:textSize="20sp"
  81. android:layout_marginBottom="5dp"
  82. android:background="@color/section_background"/>
  83. <LinearLayout
  84. android:orientation="horizontal"
  85. android:layout_width="match_parent"
  86. android:layout_height="match_parent"
  87. android:id="@+id/ll_settings_sync"
  88. android:padding="10dp"
  89. android:layout_marginBottom="5dp"
  90. android:onClick="toggleSync">
  91. <LinearLayout
  92. android:orientation="vertical"
  93. android:layout_width="match_parent"
  94. android:layout_height="match_parent"
  95. android:layout_weight=".15">
  96. <TextView
  97. android:text="@string/preferences_sync_sync"
  98. android:layout_width="match_parent"
  99. android:layout_height="wrap_content"
  100. android:textSize="18sp"
  101. android:textColor="@android:color/black"
  102. />
  103. <TextView
  104. android:text="@string/preferences_sync_sync_on"
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:id="@+id/tv_settings_sync"
  108. android:textSize="16sp"
  109. android:textColor="@android:color/black"
  110. android:layout_marginTop="4dp"
  111. android:layout_marginStart="10dp"
  112. android:textStyle="italic"
  113. android:alpha="0.8"/>
  114. </LinearLayout>
  115. <CheckBox
  116. android:layout_height="50dp"
  117. android:id="@+id/cb_settings_sync"
  118. android:padding="15dp"
  119. android:layout_width="match_parent"
  120. android:layout_weight=".85"
  121. android:gravity="center_vertical|center_horizontal"
  122. android:layout_gravity="center_vertical|center_horizontal"
  123. android:textAlignment="center"
  124. android:onClick="toggleSync"/>
  125. </LinearLayout>
  126. <TextView
  127. android:layout_width="match_parent"
  128. android:layout_height="1dp"
  129. android:background="@color/entry_border"
  130. android:layout_marginLeft="15dp"
  131. android:layout_marginRight="15dp"
  132. android:layout_marginStart="15dp"
  133. android:layout_marginEnd="15dp"/>
  134. <LinearLayout
  135. android:orientation="horizontal"
  136. android:layout_width="match_parent"
  137. android:layout_height="match_parent"
  138. android:id="@+id/ll_settings_notifications"
  139. android:padding="10dp"
  140. android:layout_marginBottom="5dp"
  141. android:onClick="toggleNotifications">
  142. <LinearLayout
  143. android:orientation="vertical"
  144. android:layout_width="match_parent"
  145. android:layout_height="match_parent"
  146. android:layout_weight=".15">
  147. <TextView
  148. android:text="@string/preferences_sync_notifications"
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:textSize="18sp"
  152. android:textColor="@android:color/black"
  153. />
  154. <TextView
  155. android:text="@string/preferences_sync_notifications_on"
  156. android:layout_width="match_parent"
  157. android:layout_height="wrap_content"
  158. android:id="@+id/tv_settings_notifications"
  159. android:textSize="16sp"
  160. android:textColor="@android:color/black"
  161. android:layout_marginTop="4dp"
  162. android:layout_marginStart="10dp"
  163. android:textStyle="italic"
  164. android:alpha="0.8"/>
  165. </LinearLayout>
  166. <CheckBox
  167. android:layout_height="50dp"
  168. android:id="@+id/cb_settings_notifications"
  169. android:padding="15dp"
  170. android:layout_width="match_parent"
  171. android:layout_weight=".85"
  172. android:gravity="center_vertical|center_horizontal"
  173. android:layout_gravity="center_vertical|center_horizontal"
  174. android:textAlignment="center"
  175. android:onClick="toggleNotifications"/>
  176. </LinearLayout>
  177. <TextView
  178. android:text="@string/preferences_info"
  179. android:layout_width="match_parent"
  180. android:layout_height="wrap_content"
  181. android:textStyle="bold"
  182. android:textColor="@color/background_menu"
  183. android:paddingEnd="10dp"
  184. android:paddingLeft="10dp"
  185. android:paddingRight="10dp"
  186. android:paddingStart="10dp"
  187. android:layout_marginTop="20dp"
  188. android:textSize="20sp"
  189. android:layout_marginBottom="5dp"
  190. android:background="@color/section_background"/>
  191. <LinearLayout
  192. android:orientation="vertical"
  193. android:layout_width="match_parent"
  194. android:layout_height="match_parent"
  195. android:id="@+id/ll_settings_version"
  196. android:padding="10dp"
  197. android:layout_marginBottom="5dp">
  198. <TextView
  199. android:text="@string/preferences_info_version"
  200. android:layout_width="match_parent"
  201. android:layout_height="wrap_content"
  202. android:textSize="18sp"
  203. android:textColor="@android:color/black"
  204. android:layout_weight=".15"/>
  205. <TextView
  206. android:layout_width="match_parent"
  207. android:layout_height="wrap_content"
  208. android:id="@+id/tv_settings_version"
  209. android:textSize="16sp"
  210. android:textColor="@android:color/black"
  211. android:layout_marginTop="4dp"
  212. android:layout_marginStart="10dp"
  213. android:layout_weight=".15"
  214. android:textStyle="italic"
  215. android:alpha="0.8"/>
  216. </LinearLayout>
  217. <TextView
  218. android:layout_width="match_parent"
  219. android:layout_height="1dp"
  220. android:background="@color/entry_border"
  221. android:layout_marginLeft="15dp"
  222. android:layout_marginRight="15dp"
  223. android:layout_marginStart="15dp"
  224. android:layout_marginEnd="15dp"/>
  225. <LinearLayout
  226. android:orientation="vertical"
  227. android:layout_width="match_parent"
  228. android:layout_height="match_parent"
  229. android:id="@+id/ll_settings_source"
  230. android:padding="10dp"
  231. android:layout_marginBottom="5dp">
  232. <TextView
  233. android:text="@string/preferences_info_source"
  234. android:layout_width="match_parent"
  235. android:layout_height="wrap_content"
  236. android:textSize="18sp"
  237. android:textColor="@android:color/black"
  238. android:layout_weight=".15"/>
  239. <TextView
  240. android:text="@string/preferences_info_source_summary"
  241. android:layout_width="match_parent"
  242. android:layout_height="wrap_content"
  243. android:textSize="16sp"
  244. android:textColor="@android:color/black"
  245. android:layout_marginTop="4dp"
  246. android:layout_marginStart="10dp"
  247. android:layout_weight=".15"
  248. android:textStyle="italic"
  249. android:alpha="0.8"/>
  250. </LinearLayout>
  251. <TextView
  252. android:layout_width="match_parent"
  253. android:layout_height="1dp"
  254. android:background="@color/entry_border"
  255. android:layout_marginLeft="15dp"
  256. android:layout_marginRight="15dp"
  257. android:layout_marginStart="15dp"
  258. android:layout_marginEnd="15dp"
  259. android:visibility="gone"/>
  260. <LinearLayout
  261. android:orientation="vertical"
  262. android:layout_width="match_parent"
  263. android:layout_height="match_parent"
  264. android:id="@+id/ll_settings_feedback"
  265. android:padding="10dp"
  266. android:layout_marginBottom="5dp"
  267. android:visibility="gone">
  268. <TextView
  269. android:text="@string/preferences_info_feedback"
  270. android:layout_width="match_parent"
  271. android:layout_height="wrap_content"
  272. android:textSize="18sp"
  273. android:textColor="@android:color/black"
  274. android:layout_weight=".15"/>
  275. <TextView
  276. android:text="@string/preferences_info_feedback_summary"
  277. android:layout_width="match_parent"
  278. android:layout_height="wrap_content"
  279. android:textSize="16sp"
  280. android:textColor="@android:color/black"
  281. android:layout_marginTop="4dp"
  282. android:layout_marginStart="10dp"
  283. android:layout_weight=".15"
  284. android:textStyle="italic"
  285. android:alpha="0.8"/>
  286. </LinearLayout>
  287. </LinearLayout>
  288. </ScrollView>
  289. </LinearLayout>