content_settings.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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.myapplication.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. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="match_parent"
  29. android:orientation="horizontal">
  30. <EditText
  31. android:id="@+id/edFolder"
  32. android:layout_width="368dp"
  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. </LinearLayout>
  40. <android.support.v7.widget.SwitchCompat
  41. android:id="@+id/swEmbedFont"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:text="@string/action_embedded_font"
  45. tools:layout_editor_absoluteX="8dp"
  46. tools:layout_editor_absoluteY="121dp" />
  47. <android.support.v7.widget.SwitchCompat
  48. android:id="@+id/swCustomLang"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:text="@string/action_custom_lang"
  52. tools:layout_editor_absoluteX="8dp"
  53. tools:layout_editor_absoluteY="191dp" />
  54. <android.support.v7.widget.SwitchCompat
  55. android:id="@+id/swGameLang"
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:text="@string/action_lang"
  59. android:textOff="@string/switch_traditional"
  60. android:textOn="@string/switch_simplified"
  61. app:showText="true"
  62. tools:layout_editor_absoluteX="8dp"
  63. tools:layout_editor_absoluteY="155dp" />
  64. <EditText
  65. android:id="@+id/edLangFile"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:layout_weight="1"
  69. android:ems="10"
  70. android:inputType="textUri" />
  71. <android.support.v7.widget.SwitchCompat
  72. android:id="@+id/swTouch"
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:text="@string/action_touch"
  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:id="@+id/tvMusVol"
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:text="@string/label_musvol" />
  97. <SeekBar
  98. android:id="@+id/sbMusVol"
  99. android:layout_width="match_parent"
  100. android:layout_height="wrap_content"
  101. android:max="100" />
  102. <TextView
  103. android:id="@+id/tvSFXVol"
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:text="@string/label_sfxvol" />
  107. <SeekBar
  108. android:id="@+id/sbSFXVol"
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content"
  111. android:max="100" />
  112. <TextView
  113. android:id="@+id/tvQuality"
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. android:text="@string/label_quality" />
  117. <SeekBar
  118. android:id="@+id/sbQuality"
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:max="4" />
  122. <TextView
  123. android:id="@+id/tvSample"
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:text="@string/label_audrate" />
  127. <android.support.v7.widget.AppCompatSpinner
  128. android:id="@+id/spSample"
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:entries="@array/audio_rate"/>
  132. <TextView
  133. android:id="@+id/tvBuffer"
  134. android:layout_width="match_parent"
  135. android:layout_height="wrap_content"
  136. android:text="@string/label_bufsize" />
  137. <android.support.v7.widget.AppCompatSpinner
  138. android:id="@+id/spBuffer"
  139. android:layout_width="match_parent"
  140. android:layout_height="wrap_content"
  141. android:entries="@array/buffer_size" />
  142. <TextView
  143. android:id="@+id/tvCDFmt"
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:text="@string/label_cdfmt" />
  147. <android.support.v7.widget.AppCompatSpinner
  148. android:id="@+id/spCDFmt"
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:entries="@array/cd_format" />
  152. <TextView
  153. android:id="@+id/tvMusFmt"
  154. android:layout_width="match_parent"
  155. android:layout_height="wrap_content"
  156. android:text="@string/label_musfmt" />
  157. <android.support.v7.widget.AppCompatSpinner
  158. android:id="@+id/spMusFmt"
  159. android:layout_width="match_parent"
  160. android:layout_height="wrap_content"
  161. android:entries="@array/music_format" />
  162. <LinearLayout
  163. android:id="@+id/layoutOPL"
  164. android:layout_width="match_parent"
  165. android:layout_height="match_parent"
  166. android:orientation="vertical">
  167. <TextView
  168. android:id="@+id/tvOPLRate"
  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:id="@+id/tvOPL"
  179. android:layout_width="match_parent"
  180. android:layout_height="wrap_content"
  181. android:text="@string/label_opl" />
  182. <android.support.v7.widget.AppCompatSpinner
  183. android:id="@+id/spOPL"
  184. android:layout_width="match_parent"
  185. android:layout_height="wrap_content"
  186. android:entries="@array/opl_type" />
  187. <android.support.v7.widget.SwitchCompat
  188. android:id="@+id/swSurround"
  189. android:layout_width="match_parent"
  190. android:layout_height="wrap_content"
  191. android:text="@string/action_suropl" />
  192. </LinearLayout>
  193. <RelativeLayout
  194. android:layout_width="match_parent"
  195. android:layout_height="match_parent">
  196. <Button
  197. android:id="@+id/btnDefault"
  198. android:layout_width="wrap_content"
  199. android:layout_height="wrap_content"
  200. android:layout_alignParentLeft="true"
  201. android:layout_alignParentStart="true"
  202. android:layout_centerVertical="true"
  203. android:layout_marginLeft="20dp"
  204. android:layout_marginStart="20dp"
  205. android:text="@string/action_default" />
  206. <Button
  207. android:id="@+id/btnFinish"
  208. android:layout_width="wrap_content"
  209. android:layout_height="wrap_content"
  210. android:layout_alignParentEnd="true"
  211. android:layout_alignParentRight="true"
  212. android:layout_centerVertical="true"
  213. android:layout_marginEnd="20dp"
  214. android:layout_marginRight="20dp"
  215. android:text="@string/action_finish" />
  216. </RelativeLayout>
  217. </LinearLayout>
  218. </ScrollView>
  219. </android.widget.LinearLayout>