diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-27 19:06:32 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-27 19:06:32 -0700 |
commit | 63b6233888e384a62017825d1e907386b5d2e89b (patch) | |
tree | 9bc931667d81f9634510a6f6b2299cb8645bc89c /res/xml | |
parent | d77b2b14ebf6532b7b0e42e9d2219ea1dacbdb18 (diff) | |
download | dsub-63b6233888e384a62017825d1e907386b5d2e89b.tar.gz dsub-63b6233888e384a62017825d1e907386b5d2e89b.tar.bz2 dsub-63b6233888e384a62017825d1e907386b5d2e89b.zip |
#241 Convert several preferences to SeekBarPreference
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/settings.xml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/res/xml/settings.xml b/res/xml/settings.xml index de9c641b..cf093e1d 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -151,11 +151,13 @@ <PreferenceCategory android:title="@string/button_bar.chat"> - <EditTextPreference + <github.daneren2005.dsub.view.SeekBarPreference android:title="@string/settings.chat_refresh" android:key="chatRefreshRate" android:defaultValue="30" - android:digits="0123456789"/> + android:dialogLayout="@layout/seekbar_preference" + myns:max="120" + myns:display="%.0f seconds"/> </PreferenceCategory> </PreferenceScreen> @@ -210,11 +212,13 @@ <PreferenceCategory android:title="@string/settings.cache_title"> - <EditTextPreference + <github.daneren2005.dsub.view.SeekBarPreference android:title="@string/settings.cache_size" android:key="cacheSize" android:defaultValue="2000" - android:digits="0123456789"/> + android:dialogLayout="@layout/seekbar_preference" + myns:max="50000" + myns:display="%.0f MB"/> <EditTextPreference android:title="@string/settings.cache_location" @@ -311,11 +315,12 @@ <PreferenceCategory android:title="@string/settings.playback_title"> - <EditTextPreference + <github.daneren2005.dsub.view.SeekBarPreference android:title="@string/settings.playlist_random_size_title" android:key="randomSize" android:defaultValue="20" - android:digits="0123456789"/> + android:dialogLayout="@layout/seekbar_preference" + myns:max="100"/> <ListPreference android:title="@string/settings.temp_loss_title" |