content_settings.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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="match_parent"
  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. <EditText
  57. android:id="@+id/edMsgFile"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_weight="1"
  61. android:ems="10"
  62. android:inputType="textUri" />
  63. <android.support.v7.widget.SwitchCompat
  64. android:id="@+id/swFontFile"
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:text="@string/action_usefontfile" />
  68. <EditText
  69. android:id="@+id/edFontFile"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:ems="10"
  73. android:inputType="textUri" />
  74. <android.support.v7.widget.SwitchCompat
  75. android:id="@+id/swTouch"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:text="@string/action_touch"
  79. tools:layout_editor_absoluteX="8dp"
  80. tools:layout_editor_absoluteY="228dp" />
  81. <android.support.v7.widget.SwitchCompat
  82. android:id="@+id/swAVI"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:text="@string/action_avi"
  86. tools:layout_editor_absoluteX="8dp"
  87. tools:layout_editor_absoluteY="228dp" />
  88. <android.support.v7.widget.SwitchCompat
  89. android:id="@+id/swAspect"
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:text="@string/action_aspect"
  93. tools:layout_editor_absoluteX="8dp"
  94. tools:layout_editor_absoluteY="269dp" />
  95. <android.support.v7.widget.SwitchCompat
  96. android:id="@+id/swStereo"
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:text="@string/action_stereo"
  100. tools:layout_editor_absoluteX="8dp"
  101. tools:layout_editor_absoluteY="311dp" />
  102. <TextView
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content"
  105. android:text="@string/label_musvol" />
  106. <SeekBar
  107. android:id="@+id/sbMusVol"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:max="100" />
  111. <TextView
  112. android:layout_width="match_parent"
  113. android:layout_height="wrap_content"
  114. android:text="@string/label_sfxvol" />
  115. <SeekBar
  116. android:id="@+id/sbSFXVol"
  117. android:layout_width="match_parent"
  118. android:layout_height="wrap_content"
  119. android:max="100" />
  120. <TextView
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:text="@string/label_quality" />
  124. <SeekBar
  125. android:id="@+id/sbQuality"
  126. android:layout_width="match_parent"
  127. android:layout_height="wrap_content"
  128. android:max="4" />
  129. <TextView
  130. android:layout_width="match_parent"
  131. android:layout_height="wrap_content"
  132. android:text="@string/label_audrate" />
  133. <android.support.v7.widget.AppCompatSpinner
  134. android:id="@+id/spSample"
  135. android:layout_width="match_parent"
  136. android:layout_height="wrap_content"
  137. android:entries="@array/audio_rate"/>
  138. <TextView
  139. android:layout_width="match_parent"
  140. android:layout_height="wrap_content"
  141. android:text="@string/label_bufsize" />
  142. <android.support.v7.widget.AppCompatSpinner
  143. android:id="@+id/spBuffer"
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:entries="@array/buffer_size" />
  147. <TextView
  148. android:layout_width="match_parent"
  149. android:layout_height="wrap_content"
  150. android:text="@string/label_cdfmt" />
  151. <android.support.v7.widget.AppCompatSpinner
  152. android:id="@+id/spCDFmt"
  153. android:layout_width="match_parent"
  154. android:layout_height="wrap_content"
  155. android:entries="@array/cd_format" />
  156. <TextView
  157. android:layout_width="match_parent"
  158. android:layout_height="wrap_content"
  159. android:text="@string/label_musfmt" />
  160. <android.support.v7.widget.AppCompatSpinner
  161. android:id="@+id/spMusFmt"
  162. android:layout_width="match_parent"
  163. android:layout_height="wrap_content"
  164. android:entries="@array/music_format" />
  165. <LinearLayout
  166. android:id="@+id/layoutOPL"
  167. android:layout_width="match_parent"
  168. android:layout_height="match_parent"
  169. android:orientation="vertical">
  170. <TextView
  171. android:layout_width="match_parent"
  172. android:layout_height="wrap_content"
  173. android:text="@string/label_oplrate" />
  174. <android.support.v7.widget.AppCompatSpinner
  175. android:id="@+id/spOPLRate"
  176. android:layout_width="match_parent"
  177. android:layout_height="wrap_content"
  178. android:entries="@array/opl_rate" />
  179. <TextView
  180. android:layout_width="match_parent"
  181. android:layout_height="wrap_content"
  182. android:text="@string/label_opl" />
  183. <android.support.v7.widget.AppCompatSpinner
  184. android:id="@+id/spOPL"
  185. android:layout_width="match_parent"
  186. android:layout_height="wrap_content"
  187. android:entries="@array/opl_type" />
  188. <android.support.v7.widget.SwitchCompat
  189. android:id="@+id/swSurround"
  190. android:layout_width="match_parent"
  191. android:layout_height="wrap_content"
  192. android:text="@string/action_suropl" />
  193. </LinearLayout>
  194. <TextView
  195. android:layout_width="match_parent"
  196. android:layout_height="wrap_content"
  197. android:text="@string/label_loglevel" />
  198. <android.support.v7.widget.AppCompatSpinner
  199. android:id="@+id/spLogLevel"
  200. android:layout_width="match_parent"
  201. android:layout_height="wrap_content"
  202. android:entries="@array/log_level" />
  203. <android.support.v7.widget.SwitchCompat
  204. android:id="@+id/swLogFile"
  205. android:layout_width="match_parent"
  206. android:layout_height="wrap_content"
  207. android:text="@string/action_uselogfile" />
  208. <EditText
  209. android:id="@+id/edLogFile"
  210. android:layout_width="match_parent"
  211. android:layout_height="wrap_content"
  212. android:ems="10"
  213. android:inputType="textUri" />
  214. <android.support.v7.widget.GridLayout
  215. app:columnCount="3"
  216. app:rowCount="1"
  217. android:layout_width="match_parent"
  218. android:layout_height="match_parent">
  219. <Button
  220. android:id="@+id/btnDefault"
  221. android:layout_width="wrap_content"
  222. android:layout_height="wrap_content"
  223. android:layout_alignParentLeft="true"
  224. android:layout_alignParentStart="true"
  225. android:layout_centerVertical="true"
  226. android:text="@string/action_default"
  227. app:layout_column="0"
  228. app:layout_columnWeight="1" />
  229. <Button
  230. android:id="@+id/btnReset"
  231. android:layout_width="wrap_content"
  232. android:layout_height="wrap_content"
  233. android:layout_alignParentEnd="true"
  234. android:layout_alignParentRight="true"
  235. android:layout_centerVertical="true"
  236. android:text="@string/action_restore"
  237. app:layout_column="1"
  238. app:layout_columnWeight="1" />
  239. <Button
  240. android:id="@+id/btnFinish"
  241. android:layout_width="wrap_content"
  242. android:layout_height="wrap_content"
  243. android:layout_alignParentEnd="true"
  244. android:layout_alignParentRight="true"
  245. android:layout_centerVertical="true"
  246. android:text="@string/action_finish"
  247. app:layout_column="2"
  248. app:layout_columnWeight="1" />
  249. </android.support.v7.widget.GridLayout>
  250. </LinearLayout>
  251. </ScrollView>
  252. </android.widget.LinearLayout>