Some more Android Preferences

This commit is contained in:
Florian Märkl 2019-10-17 16:39:37 +02:00
commit f584f2ee3f
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
3 changed files with 51 additions and 0 deletions

View 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>

View file

@ -43,4 +43,9 @@
<string name="preferences_category_title_stream">Stream</string>
<string name="preferences_registered_hosts_title">Registered Consoles</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>

View file

@ -11,10 +11,30 @@
app:summary=" "
app:title="@string/preferences_registered_hosts_title"
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
app:key="category_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>
</PreferenceScreen>