content_settings.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.widget.LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  8. tools:context="com.sdlpal.sdlpal.SettingsActivity"
  9. tools:showIn="@layout/activity_settings">
  10. <ScrollView
  11. android:id="@+id/svParent"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent">
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:orientation="vertical"
  18. android:focusable="true"
  19. android:focusableInTouchMode="true"
  20. >
  21. <TextView
  22. android:id="@+id/autotext"
  23. android:nextFocusUp="@id/autotext"
  24. android:nextFocusLeft="@id/autotext"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:text="@string/label_folder"
  28. tools:layout_editor_absoluteX="8dp"
  29. tools:layout_editor_absoluteY="-1dp" />
  30. <LinearLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:orientation="horizontal">
  34. <EditText
  35. android:id="@+id/edFolder"
  36. android:layout_width="0dp"
  37. android:layout_height="wrap_content"
  38. android:layout_weight="1"
  39. android:ems="10"
  40. android:inputType="textUri"
  41. tools:layout_editor_absoluteX="8dp"
  42. tools:layout_editor_absoluteY="16dp" />
  43. <Button
  44. android:id="@+id/btnBrowseFolder"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:text="@string/action_browse" />
  48. </LinearLayout>
  49. <android.support.v7.widget.SwitchCompat
  50. android:id="@+id/swMsgFile"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:text="@string/action_usemsgfile"
  54. tools:layout_editor_absoluteX="8dp"
  55. tools:layout_editor_absoluteY="191dp" />
  56. <LinearLayout
  57. android:layout_width="match_parent"
  58. android:layout_height="wrap_content"
  59. android:orientation="horizontal">
  60. <EditText
  61. android:id="@+id/edMsgFile"
  62. android:layout_width="0dp"
  63. android:layout_height="wrap_content"
  64. android:layout_weight="1"
  65. android:ems="10"
  66. android:inputType="textUri" />
  67. <Button
  68. android:id="@+id/btnBrowseMsgFile"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:text="@string/action_browse" />
  72. </LinearLayout>
  73. <android.support.v7.widget.SwitchCompat
  74. android:id="@+id/swFontFile"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:text="@string/action_usefontfile" />
  78. <LinearLayout
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:orientation="horizontal">
  82. <EditText
  83. android:id="@+id/edFontFile"
  84. android:layout_width="0dp"
  85. android:layout_height="wrap_content"
  86. android:ems="10"
  87. android:layout_weight="1"
  88. android:inputType="textUri" />
  89. <Button
  90. android:id="@+id/btnBrowseFontFile"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:text="@string/action_browse" />
  94. </LinearLayout>
  95. <android.support.v7.widget.SwitchCompat
  96. android:id="@+id/swTouch"
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:text="@string/action_touch"
  100. tools:layout_editor_absoluteX="8dp"
  101. tools:layout_editor_absoluteY="228dp" />
  102. <android.support.v7.widget.SwitchCompat
  103. android:id="@+id/swAVI"
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:text="@string/action_avi"
  107. tools:layout_editor_absoluteX="8dp"
  108. tools:layout_editor_absoluteY="228dp" />
  109. <android.support.v7.widget.SwitchCompat
  110. android:id="@+id/swAspect"
  111. android:layout_width="match_parent"
  112. android:layout_height="wrap_content"
  113. android:text="@string/action_aspect"
  114. tools:layout_editor_absoluteX="8dp"
  115. tools:layout_editor_absoluteY="269dp" />
  116. <android.support.v7.widget.SwitchCompat
  117. android:id="@+id/swStereo"
  118. android:layout_width="match_parent"
  119. android:layout_height="wrap_content"
  120. android:text="@string/action_stereo"
  121. tools:layout_editor_absoluteX="8dp"
  122. tools:layout_editor_absoluteY="311dp" />
  123. <TextView
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:text="@string/label_musvol" />
  127. <SeekBar
  128. android:id="@+id/sbMusVol"
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:max="100" />
  132. <TextView
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:text="@string/label_sfxvol" />
  136. <SeekBar
  137. android:id="@+id/sbSFXVol"
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:max="100" />
  141. <TextView
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:text="@string/label_quality" />
  145. <SeekBar
  146. android:id="@+id/sbQuality"
  147. android:layout_width="match_parent"
  148. android:layout_height="wrap_content"
  149. android:max="4" />
  150. <TextView
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:text="@string/label_audrate" />
  154. <android.support.v7.widget.AppCompatSpinner
  155. android:id="@+id/spSample"
  156. android:layout_width="match_parent"
  157. android:layout_height="wrap_content"
  158. android:entries="@array/audio_rate"/>
  159. <TextView
  160. android:layout_width="match_parent"
  161. android:layout_height="wrap_content"
  162. android:text="@string/label_bufsize" />
  163. <android.support.v7.widget.AppCompatSpinner
  164. android:id="@+id/spBuffer"
  165. android:layout_width="match_parent"
  166. android:layout_height="wrap_content"
  167. android:entries="@array/buffer_size" />
  168. <TextView
  169. android:layout_width="match_parent"
  170. android:layout_height="wrap_content"
  171. android:text="@string/label_cdfmt" />
  172. <android.support.v7.widget.AppCompatSpinner
  173. android:id="@+id/spCDFmt"
  174. android:layout_width="match_parent"
  175. android:layout_height="wrap_content"
  176. android:entries="@array/cd_format" />
  177. <TextView
  178. android:layout_width="match_parent"
  179. android:layout_height="wrap_content"
  180. android:text="@string/label_musfmt" />
  181. <android.support.v7.widget.AppCompatSpinner
  182. android:id="@+id/spMusFmt"
  183. android:layout_width="match_parent"
  184. android:layout_height="wrap_content"
  185. android:entries="@array/music_format" />
  186. <LinearLayout
  187. android:id="@+id/layoutOPL"
  188. android:layout_width="match_parent"
  189. android:layout_height="match_parent"
  190. android:orientation="vertical">
  191. <TextView
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:text="@string/label_oplrate" />
  195. <android.support.v7.widget.AppCompatSpinner
  196. android:id="@+id/spOPLRate"
  197. android:layout_width="match_parent"
  198. android:layout_height="wrap_content"
  199. android:entries="@array/opl_rate" />
  200. <TextView
  201. android:layout_width="match_parent"
  202. android:layout_height="wrap_content"
  203. android:text="@string/label_opl" />
  204. <android.support.v7.widget.AppCompatSpinner
  205. android:id="@+id/spOPL"
  206. android:layout_width="match_parent"
  207. android:layout_height="wrap_content"
  208. android:entries="@array/opl_type" />
  209. <android.support.v7.widget.SwitchCompat
  210. android:id="@+id/swSurround"
  211. android:layout_width="match_parent"
  212. android:layout_height="wrap_content"
  213. android:text="@string/action_suropl" />
  214. </LinearLayout>
  215. <TextView
  216. android:layout_width="match_parent"
  217. android:layout_height="wrap_content"
  218. android:text="@string/label_loglevel" />
  219. <android.support.v7.widget.AppCompatSpinner
  220. android:id="@+id/spLogLevel"
  221. android:layout_width="match_parent"
  222. android:layout_height="wrap_content"
  223. android:entries="@array/log_level" />
  224. <android.support.v7.widget.SwitchCompat
  225. android:id="@+id/swLogFile"
  226. android:layout_width="match_parent"
  227. android:layout_height="wrap_content"
  228. android:text="@string/action_uselogfile" />
  229. <EditText
  230. android:id="@+id/edLogFile"
  231. android:layout_width="match_parent"
  232. android:layout_height="wrap_content"
  233. android:ems="10"
  234. android:inputType="textUri" />
  235. <android.support.v7.widget.GridLayout
  236. app:columnCount="3"
  237. app:rowCount="1"
  238. android:layout_width="match_parent"
  239. android:layout_height="match_parent">
  240. <Button
  241. android:id="@+id/btnDefault"
  242. android:layout_width="wrap_content"
  243. android:layout_height="wrap_content"
  244. android:layout_alignParentLeft="true"
  245. android:layout_alignParentStart="true"
  246. android:layout_centerVertical="true"
  247. android:text="@string/action_default"
  248. app:layout_column="0"
  249. app:layout_columnWeight="1" />
  250. <Button
  251. android:id="@+id/btnReset"
  252. android:layout_width="wrap_content"
  253. android:layout_height="wrap_content"
  254. android:layout_alignParentEnd="true"
  255. android:layout_alignParentRight="true"
  256. android:layout_centerVertical="true"
  257. android:text="@string/action_restore"
  258. app:layout_column="1"
  259. app:layout_columnWeight="1" />
  260. <Button
  261. android:id="@+id/btnFinish"
  262. android:layout_width="wrap_content"
  263. android:layout_height="wrap_content"
  264. android:layout_alignParentEnd="true"
  265. android:layout_alignParentRight="true"
  266. android:layout_centerVertical="true"
  267. android:text="@string/action_finish"
  268. app:layout_column="2"
  269. app:layout_columnWeight="1" />
  270. </android.support.v7.widget.GridLayout>
  271. </LinearLayout>
  272. </ScrollView>
  273. </android.widget.LinearLayout>