[android-developers] Re: Is there a SeekBar preference?

2009-01-09 Thread Stoyan Damov
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) {

[android-developers] Re: Is there a SeekBar preference?

2009-01-09 Thread Stoyan Damov
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

[android-developers] Re: Is there a SeekBar preference?

2009-01-08 Thread Marc Lester Tan
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;