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. <android.support.v7.widget.SwitchCompat
  60. android:id="@+id/swTouch"
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:text="@string/action_touch"
  64. tools:layout_editor_absoluteX="8dp"
  65. tools:layout_editor_absoluteY="228dp" />
  66. <android.support.v7.widget.SwitchCompat
  67. android:id="@+id/swAVI"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:text="@string/action_avi"
  71. tools:layout_editor_absoluteX="8dp"
  72. tools:layout_editor_absoluteY="228dp" />
  73. <android.support.v7.widget.SwitchCompat
  74. android:id="@+id/swAspect"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:text="@string/action_aspect"
  78. tools:layout_editor_absoluteX="8dp"
  79. tools:layout_editor_absoluteY="269dp" />
  80. <android.support.v7.widget.SwitchCompat
  81. android:id="@+id/swStereo"
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:text="@string/action_stereo"
  85. tools:layout_editor_absoluteX="8dp"
  86. tools:layout_editor_absoluteY="311dp" />
  87. <TextView
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:text="@string/label_musvol" />
  91. <SeekBar
  92. android:id="@+id/sbMusVol"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:max="100" />
  96. <TextView
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:text="@string/label_sfxvol" />
  100. <SeekBar
  101. android:id="@+id/sbSFXVol"
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:max="100" />
  105. <TextView
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:text="@string/label_quality" />
  109. <SeekBar
  110. android:id="@+id/sbQuality"
  111. android:layout_width="match_parent"
  112. android:layout_height="wrap_content"
  113. android:max="4" />
  114. <TextView
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:text="@string/label_audrate" />
  118. <android.support.v7.widget.AppCompatSpinner
  119. android:id="@+id/spSample"
  120. android:layout_width="match_parent"
  121. android:layout_height="wrap_content"
  122. android:entries="@array/audio_rate"/>
  123. <TextView
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:text="@string/label_bufsize" />
  127. <android.support.v7.widget.AppCompatSpinner
  128. android:id="@+id/spBuffer"
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:entries="@array/buffer_size" />
  132. <TextView
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:text="@string/label_cdfmt" />
  136. <android.support.v7.widget.AppCompatSpinner
  137. android:id="@+id/spCDFmt"
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:entries="@array/cd_format" />
  141. <TextView
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:text="@string/label_musfmt" />
  145. <android.support.v7.widget.AppCompatSpinner
  146. android:id="@+id/spMusFmt"
  147. android:layout_width="match_parent"
  148. android:layout_height="wrap_content"
  149. android:entries="@array/music_format" />
  150. <LinearLayout
  151. android:id="@+id/layoutOPL"
  152. android:layout_width="match_parent"
  153. android:layout_height="match_parent"
  154. android:orientation="vertical">
  155. <TextView
  156. android:layout_width="match_parent"
  157. android:layout_height="wrap_content"
  158. android:text="@string/label_oplrate" />
  159. <android.support.v7.widget.AppCompatSpinner
  160. android:id="@+id/spOPLRate"
  161. android:layout_width="match_parent"
  162. android:layout_height="wrap_content"
  163. android:entries="@array/opl_rate" />
  164. <TextView
  165. android:layout_width="match_parent"
  166. android:layout_height="wrap_content"
  167. android:text="@string/label_opl" />
  168. <android.support.v7.widget.AppCompatSpinner
  169. android:id="@+id/spOPL"
  170. android:layout_width="match_parent"
  171. android:layout_height="wrap_content"
  172. android:entries="@array/opl_type" />
  173. <android.support.v7.widget.SwitchCompat
  174. android:id="@+id/swSurround"
  175. android:layout_width="match_parent"
  176. android:layout_height="wrap_content"
  177. android:text="@string/action_suropl" />
  178. </LinearLayout>
  179. <TextView
  180. android:layout_width="match_parent"
  181. android:layout_height="wrap_content"
  182. android:text="@string/label_loglevel" />
  183. <android.support.v7.widget.AppCompatSpinner
  184. android:id="@+id/spLogLevel"
  185. android:layout_width="match_parent"
  186. android:layout_height="wrap_content"
  187. android:entries="@array/log_level" />
  188. <android.support.v7.widget.SwitchCompat
  189. android:id="@+id/swLogFile"
  190. android:layout_width="match_parent"
  191. android:layout_height="wrap_content"
  192. android:text="@string/action_uselogfile" />
  193. <EditText
  194. android:id="@+id/edLogFile"
  195. android:layout_width="match_parent"
  196. android:layout_height="wrap_content"
  197. android:ems="10"
  198. android:inputType="textUri" />
  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>