content_settings.xml 11 KB

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