content_settings.xml 11 KB

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