1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-02 11:26:09 +02:00
Gadgetbridge/app/src/main/res/xml/devicesettings_galaxy_buds.xml
2024-03-31 07:46:47 +00:00

113 lines
5.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceScreen
android:icon="@drawable/ic_hearing"
android:key="prefs_ambient_mode"
android:persistent="false"
android:title="@string/prefs_ambient_mode">
<PreferenceCategory android:title="@string/prefs_ambient_mode">
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_hearing"
android:key="pref_galaxy_buds_ambient_mode"
android:layout="@layout/preference_checkbox"
android:summary="Hear surrounding sounds"
android:title="@string/prefs_ambient_sound" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:dependency="pref_galaxy_buds_ambient_mode"
android:icon="@drawable/ic_voice"
android:key="pref_galaxy_buds_ambient_voice_focus"
android:layout="@layout/preference_checkbox"
android:summary="@string/prefs_ambient_voice_summary"
android:title="@string/prefs_ambient_voice_focus" />
<SeekBarPreference
style="@style/Widget.AppCompat.SeekBar.Discrete"
android:icon="@drawable/ic_volume_up"
android:key="pref_galaxy_buds_ambient_volume"
android:max="5"
android:title="@string/prefs_ambient_volume"
app:min="1"
app:showSeekBarValue="true" />
</PreferenceCategory>
</PreferenceScreen>
<PreferenceScreen
android:icon="@drawable/ic_graphic_eq"
android:key="prefs_equalizer"
android:persistent="false"
android:title="@string/prefs_equalizer">
<PreferenceCategory android:title="@string/prefs_equalizer">
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_graphic_eq"
android:key="pref_galaxy_buds_equalizer"
android:layout="@layout/preference_checkbox"
android:summary="@string/prefs_equalizer_summary"
android:title="@string/prefs_equalizer" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:dependency="pref_galaxy_buds_equalizer"
android:icon="@drawable/ic_music_note"
android:key="pref_galaxy_buds_equalizer_dolby"
android:layout="@layout/preference_checkbox"
android:summary="@string/prefs_dolby_summary"
android:title="@string/prefs_dolby_mode" />
<ListPreference
android:dependency="pref_galaxy_buds_equalizer"
android:entries="@array/galaxy_eqalizer_modes"
android:entryValues="@array/galaxy_eqalizer_values"
android:icon="@drawable/ic_equalizer"
android:key="pref_galaxy_buds_equalizer_mode"
android:summary="%s"
android:title="@string/prefs_equalizer_preset" />
</PreferenceCategory>
</PreferenceScreen>
<PreferenceScreen
android:icon="@drawable/ic_touch"
android:key="prefs_galaxy_touch_options"
android:persistent="false"
android:title="@string/prefs_galaxy_touch_options">
<PreferenceCategory android:title="@string/prefs_galaxy_touch_options">
<SwitchPreferenceCompat
android:defaultValue="false"
android:disableDependentsState="true"
android:icon="@drawable/ic_lock_open"
android:key="pref_galaxy_buds_lock_touch"
android:layout="@layout/preference_checkbox"
android:summary="@string/prefs_touch_lock_summary"
android:title="@string/prefs_touch_lock" />
<ListPreference
android:dependency="pref_galaxy_buds_lock_touch"
android:entries="@array/galaxy_touch_options_left"
android:entryValues="@array/galaxy_touch_options_values"
android:icon="@drawable/ic_touch"
android:key="pref_galaxy_buds_touch_left"
android:summary="%s"
android:title="@string/prefs_left" />
<ListPreference
android:dependency="pref_galaxy_buds_lock_touch"
android:entries="@array/galaxy_touch_options_right"
android:entryValues="@array/galaxy_touch_options_values"
android:icon="@drawable/ic_touch"
android:key="pref_galaxy_buds_touch_right"
android:summary="%s"
android:title="@string/prefs_right" />
</PreferenceCategory>
</PreferenceScreen>
<PreferenceCategory android:title="@string/prefs_galaxy_buds_experimental">
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_videogame"
android:key="pref_galaxy_buds_game_mode"
android:layout="@layout/preference_checkbox"
android:summary="@string/prefs_game_mode_summary"
android:title="@string/prefs_game_mode" />
</PreferenceCategory>
</androidx.preference.PreferenceScreen>