Mercurial > cgi-bin > hgweb.cgi > SimpleResizer
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/src/main/res/xml/root_preferences.xml Thu Feb 18 22:12:19 2021 -0800 @@ -0,0 +1,25 @@ +<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> \ No newline at end of file