content_settings.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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:id="@+id/tvFolder"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:text="@string/label_folder"
  24. tools:layout_editor_absoluteX="8dp"
  25. tools:layout_editor_absoluteY="-1dp" />
  26. <EditText
  27. android:id="@+id/edFolder"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:layout_weight="1"
  31. android:ems="10"
  32. android:inputType="textUri"
  33. tools:layout_editor_absoluteX="8dp"
  34. tools:layout_editor_absoluteY="16dp" />
  35. <android.support.v7.widget.SwitchCompat
  36. android:id="@+id/swEmbedFont"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:text="@string/action_embedded_font"
  40. tools:layout_editor_absoluteX="8dp"
  41. tools:layout_editor_absoluteY="121dp" />
  42. <android.support.v7.widget.SwitchCompat
  43. android:id="@+id/swCustomLang"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:text="@string/action_custom_lang"
  47. tools:layout_editor_absoluteX="8dp"
  48. tools:layout_editor_absoluteY="191dp" />
  49. <android.support.v7.widget.SwitchCompat
  50. android:id="@+id/swGameLang"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:text="@string/action_lang"
  54. android:textOff="@string/switch_traditional"
  55. android:textOn="@string/switch_simplified"
  56. app:showText="true"
  57. tools:layout_editor_absoluteX="8dp"
  58. tools:layout_editor_absoluteY="155dp" />
  59. <EditText
  60. android:id="@+id/edLangFile"
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:layout_weight="1"
  64. android:ems="10"
  65. android:inputType="textUri" />
  66. <android.support.v7.widget.SwitchCompat
  67. android:id="@+id/swTouch"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:text="@string/action_touch"
  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:id="@+id/tvMusVol"
  89. android:layout_width="match_parent"
  90. android:layout_height="wrap_content"
  91. android:text="@string/label_musvol" />
  92. <SeekBar
  93. android:id="@+id/sbMusVol"
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:max="100" />
  97. <TextView
  98. android:id="@+id/tvSFXVol"
  99. android:layout_width="match_parent"
  100. android:layout_height="wrap_content"
  101. android:text="@string/label_sfxvol" />
  102. <SeekBar
  103. android:id="@+id/sbSFXVol"
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:max="100" />
  107. <TextView
  108. android:id="@+id/tvQuality"
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content"
  111. android:text="@string/label_quality" />
  112. <SeekBar
  113. android:id="@+id/sbQuality"
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. android:max="4" />
  117. <TextView
  118. android:id="@+id/tvSample"
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:text="@string/label_audrate" />
  122. <android.support.v7.widget.AppCompatSpinner
  123. android:id="@+id/spSample"
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:entries="@array/audio_rate"/>
  127. <TextView
  128. android:id="@+id/tvBuffer"
  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:id="@+id/tvCDFmt"
  139. android:layout_width="match_parent"
  140. android:layout_height="wrap_content"
  141. android:text="@string/label_cdfmt" />
  142. <android.support.v7.widget.AppCompatSpinner
  143. android:id="@+id/spCDFmt"
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:entries="@array/cd_format" />
  147. <TextView
  148. android:id="@+id/tvMusFmt"
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:text="@string/label_musfmt" />
  152. <android.support.v7.widget.AppCompatSpinner
  153. android:id="@+id/spMusFmt"
  154. android:layout_width="match_parent"
  155. android:layout_height="wrap_content"
  156. android:entries="@array/music_format" />
  157. <LinearLayout
  158. android:id="@+id/layoutOPL"
  159. android:layout_width="match_parent"
  160. android:layout_height="match_parent"
  161. android:orientation="vertical">
  162. <TextView
  163. android:id="@+id/tvOPLRate"
  164. android:layout_width="match_parent"
  165. android:layout_height="wrap_content"
  166. android:text="@string/label_oplrate" />
  167. <android.support.v7.widget.AppCompatSpinner
  168. android:id="@+id/spOPLRate"
  169. android:layout_width="match_parent"
  170. android:layout_height="wrap_content"
  171. android:entries="@array/opl_rate" />
  172. <TextView
  173. android:id="@+id/tvOPL"
  174. android:layout_width="match_parent"
  175. android:layout_height="wrap_content"
  176. android:text="@string/label_opl" />
  177. <android.support.v7.widget.AppCompatSpinner
  178. android:id="@+id/spOPL"
  179. android:layout_width="match_parent"
  180. android:layout_height="wrap_content"
  181. android:entries="@array/opl_type" />
  182. <android.support.v7.widget.SwitchCompat
  183. android:id="@+id/swSurround"
  184. android:layout_width="match_parent"
  185. android:layout_height="wrap_content"
  186. android:text="@string/action_suropl" />
  187. </LinearLayout>
  188. <android.support.v7.widget.GridLayout
  189. app:columnCount="3"
  190. app:rowCount="1"
  191. android:layout_width="match_parent"
  192. android:layout_height="match_parent">
  193. <Button
  194. android:id="@+id/btnDefault"
  195. android:layout_width="wrap_content"
  196. android:layout_height="wrap_content"
  197. android:layout_alignParentLeft="true"
  198. android:layout_alignParentStart="true"
  199. android:layout_centerVertical="true"
  200. android:text="@string/action_default"
  201. app:layout_column="0"
  202. app:layout_columnWeight="1" />
  203. <Button
  204. android:id="@+id/btnReset"
  205. android:layout_width="wrap_content"
  206. android:layout_height="wrap_content"
  207. android:layout_alignParentEnd="true"
  208. android:layout_alignParentRight="true"
  209. android:layout_centerVertical="true"
  210. android:text="@string/action_restore"
  211. app:layout_column="1"
  212. app:layout_columnWeight="1" />
  213. <Button
  214. android:id="@+id/btnFinish"
  215. android:layout_width="wrap_content"
  216. android:layout_height="wrap_content"
  217. android:layout_alignParentEnd="true"
  218. android:layout_alignParentRight="true"
  219. android:layout_centerVertical="true"
  220. android:text="@string/action_finish"
  221. app:layout_column="2"
  222. app:layout_columnWeight="1" />
  223. </android.support.v7.widget.GridLayout>
  224. </LinearLayout>
  225. </ScrollView>
  226. </android.widget.LinearLayout>