content_settings.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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/swAspect"
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:text="@string/action_aspect"
  91. tools:layout_editor_absoluteX="8dp"
  92. tools:layout_editor_absoluteY="269dp" />
  93. <android.support.v7.widget.SwitchCompat
  94. android:id="@+id/swStereo"
  95. android:layout_width="match_parent"
  96. android:layout_height="wrap_content"
  97. android:text="@string/action_stereo"
  98. tools:layout_editor_absoluteX="8dp"
  99. tools:layout_editor_absoluteY="311dp" />
  100. <TextView
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:text="@string/label_musvol" />
  104. <SeekBar
  105. android:id="@+id/sbMusVol"
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:max="100" />
  109. <TextView
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content"
  112. android:text="@string/label_sfxvol" />
  113. <SeekBar
  114. android:id="@+id/sbSFXVol"
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:max="100" />
  118. <TextView
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:text="@string/label_quality" />
  122. <SeekBar
  123. android:id="@+id/sbQuality"
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:max="4" />
  127. <TextView
  128. android:layout_width="match_parent"
  129. android:layout_height="wrap_content"
  130. android:text="@string/label_audrate" />
  131. <android.support.v7.widget.AppCompatSpinner
  132. android:id="@+id/spSample"
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:entries="@array/audio_rate"/>
  136. <TextView
  137. android:layout_width="match_parent"
  138. android:layout_height="wrap_content"
  139. android:text="@string/label_bufsize" />
  140. <android.support.v7.widget.AppCompatSpinner
  141. android:id="@+id/spBuffer"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:entries="@array/buffer_size" />
  145. <TextView
  146. android:layout_width="match_parent"
  147. android:layout_height="wrap_content"
  148. android:text="@string/label_cdfmt" />
  149. <android.support.v7.widget.AppCompatSpinner
  150. android:id="@+id/spCDFmt"
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:entries="@array/cd_format" />
  154. <TextView
  155. android:layout_width="match_parent"
  156. android:layout_height="wrap_content"
  157. android:text="@string/label_musfmt" />
  158. <android.support.v7.widget.AppCompatSpinner
  159. android:id="@+id/spMusFmt"
  160. android:layout_width="match_parent"
  161. android:layout_height="wrap_content"
  162. android:entries="@array/music_format" />
  163. <LinearLayout
  164. android:id="@+id/layoutOPL"
  165. android:layout_width="match_parent"
  166. android:layout_height="match_parent"
  167. android:orientation="vertical">
  168. <TextView
  169. android:layout_width="match_parent"
  170. android:layout_height="wrap_content"
  171. android:text="@string/label_oplrate" />
  172. <android.support.v7.widget.AppCompatSpinner
  173. android:id="@+id/spOPLRate"
  174. android:layout_width="match_parent"
  175. android:layout_height="wrap_content"
  176. android:entries="@array/opl_rate" />
  177. <TextView
  178. android:layout_width="match_parent"
  179. android:layout_height="wrap_content"
  180. android:text="@string/label_opl" />
  181. <android.support.v7.widget.AppCompatSpinner
  182. android:id="@+id/spOPL"
  183. android:layout_width="match_parent"
  184. android:layout_height="wrap_content"
  185. android:entries="@array/opl_type" />
  186. <android.support.v7.widget.SwitchCompat
  187. android:id="@+id/swSurround"
  188. android:layout_width="match_parent"
  189. android:layout_height="wrap_content"
  190. android:text="@string/action_suropl" />
  191. </LinearLayout>
  192. <android.support.v7.widget.GridLayout
  193. app:columnCount="3"
  194. app:rowCount="1"
  195. android:layout_width="match_parent"
  196. android:layout_height="match_parent">
  197. <Button
  198. android:id="@+id/btnDefault"
  199. android:layout_width="wrap_content"
  200. android:layout_height="wrap_content"
  201. android:layout_alignParentLeft="true"
  202. android:layout_alignParentStart="true"
  203. android:layout_centerVertical="true"
  204. android:text="@string/action_default"
  205. app:layout_column="0"
  206. app:layout_columnWeight="1" />
  207. <Button
  208. android:id="@+id/btnReset"
  209. android:layout_width="wrap_content"
  210. android:layout_height="wrap_content"
  211. android:layout_alignParentEnd="true"
  212. android:layout_alignParentRight="true"
  213. android:layout_centerVertical="true"
  214. android:text="@string/action_restore"
  215. app:layout_column="1"
  216. app:layout_columnWeight="1" />
  217. <Button
  218. android:id="@+id/btnFinish"
  219. android:layout_width="wrap_content"
  220. android:layout_height="wrap_content"
  221. android:layout_alignParentEnd="true"
  222. android:layout_alignParentRight="true"
  223. android:layout_centerVertical="true"
  224. android:text="@string/action_finish"
  225. app:layout_column="2"
  226. app:layout_columnWeight="1" />
  227. </android.support.v7.widget.GridLayout>
  228. </LinearLayout>
  229. </ScrollView>
  230. </android.widget.LinearLayout>