Hi Marc,
Big thanks for sharing the code.
I'm thinking of changing
volumeLevel.setProgress(0); // You might want to fetch the value
here from sharedpreferences
to
volumeLevel.setProgress(getPersistedInt(0));
and
protected void onDialogClosed(boolean positiveResult) {
Hey Marc, I just want to thank you again (but don't wanna flood the list).
I had no idea that preferences could be extended with new types so easily.
Thanks again!
Cheers,
Stoyan
On Fri, Jan 9, 2009 at 4:52 AM, Marc Lester Tan mail...@gmail.com wrote:
Hi Stoyan,
Yesterday I also asked myself
Hi Stoyan,
Yesterday I also asked myself if there's a Seekbar preference but I looked
around and did not find any so I created my own. Here's my code if it will
help you.
public class SeekBarPreference extends DialogPreference{
private Context context;
private SeekBar volumeLevel;
3 matches
Mail list logo