mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-19 13:09:39 -07:00
Some more Android Preferences
This commit is contained in:
parent
bb6db27f7c
commit
f584f2ee3f
3 changed files with 51 additions and 0 deletions
26
android/app/src/main/res/values/array.xml
Normal file
26
android/app/src/main/res/values/array.xml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string-array name="preferences_resolution_ids">
|
||||||
|
<item>360p</item>
|
||||||
|
<item>540p</item>
|
||||||
|
<item>720p</item>
|
||||||
|
<item>1080p</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<string-array name="preferences_resolution_names">
|
||||||
|
<item>360p</item>
|
||||||
|
<item>540p</item>
|
||||||
|
<item>720p</item>
|
||||||
|
<item>1080p</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<string-array name="preferences_fps_ids">
|
||||||
|
<item>30</item>
|
||||||
|
<item>60</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<string-array name="preferences_fps_names">
|
||||||
|
<item>30</item>
|
||||||
|
<item>60</item>
|
||||||
|
</string-array>
|
||||||
|
</resources>
|
|
@ -43,4 +43,9 @@
|
||||||
<string name="preferences_category_title_stream">Stream</string>
|
<string name="preferences_category_title_stream">Stream</string>
|
||||||
<string name="preferences_registered_hosts_title">Registered Consoles</string>
|
<string name="preferences_registered_hosts_title">Registered Consoles</string>
|
||||||
<string name="preferences_registered_hosts_summary">Currently registered: %d</string>
|
<string name="preferences_registered_hosts_summary">Currently registered: %d</string>
|
||||||
|
<string name="preferences_resolution_title">Resolution</string>
|
||||||
|
<string name="preferences_fps_title">FPS</string>
|
||||||
|
<string name="preferences_bitrate_title">Bitrate</string>
|
||||||
|
<string name="preferences_log_verbose_title">Verbose Logging</string>
|
||||||
|
<string name="preferences_log_verbose_summary">Warning: This logs a LOT! Don\'t enable for regular use.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -11,10 +11,30 @@
|
||||||
app:summary=" "
|
app:summary=" "
|
||||||
app:title="@string/preferences_registered_hosts_title"
|
app:title="@string/preferences_registered_hosts_title"
|
||||||
app:fragment="com.metallic.chiaki.settings.SettingsRegisteredHostsFragment"/>
|
app:fragment="com.metallic.chiaki.settings.SettingsRegisteredHostsFragment"/>
|
||||||
|
|
||||||
|
<SwitchPreference
|
||||||
|
app:key="log_verbose"
|
||||||
|
app:title="@string/preferences_log_verbose_title"
|
||||||
|
app:summary="@string/preferences_log_verbose_summary"/>
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
|
|
||||||
<PreferenceCategory
|
<PreferenceCategory
|
||||||
app:key="category_stream"
|
app:key="category_stream"
|
||||||
app:title="@string/preferences_category_title_stream">
|
app:title="@string/preferences_category_title_stream">
|
||||||
|
<ListPreference
|
||||||
|
app:key="resolution"
|
||||||
|
app:title="@string/preferences_resolution_title"
|
||||||
|
app:entries="@array/preferences_resolution_names"
|
||||||
|
app:entryValues="@array/preferences_resolution_ids" />
|
||||||
|
|
||||||
|
<ListPreference
|
||||||
|
app:key="fps"
|
||||||
|
app:title="@string/preferences_fps_title"
|
||||||
|
app:entries="@array/preferences_fps_names"
|
||||||
|
app:entryValues="@array/preferences_fps_ids" />
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
app:key="bitrate"
|
||||||
|
app:title="@string/preferences_bitrate_title" />
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
Loading…
Add table
Add a link
Reference in a new issue