view app/src/main/res/xml/root_preferences.xml @ 15:20da616dcda0

Add preferences.
author David Barts <n5jrn@me.com>
date Thu, 18 Feb 2021 22:12:19 -0800
parents
children 474ef75856c2
line wrap: on
line source

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <ListPreference
        android:id="@+id/scale_type"
        android:defaultValue="speed"
        android:key="scale_type"
        android:title="@string/scale_type_title"
        app:entries="@array/scale_type_titles"
        app:entryValues="@array/scale_types"
        app:title="@string/scale_type_title"
        app:useSimpleSummaryProvider="true" />

    <SeekBarPreference
        android:id="@+id/jpeg_quality"
        android:defaultValue="85"
        android:key="jpeg_quality"
        android:max="100"
        android:title="@string/jpeg_quality_title"
        app:defaultValue="85"
        app:min="0"
        app:showSeekBarValue="true"
        app:title="@string/jpeg_quality_title" />

</PreferenceScreen>