Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 5
Registered: ‎12-14-2012
My Device: 9700
My Carrier: AppDev

SliderField : Max Values of Slider and auto move when play Media;

I create Sliderfield whit this code : 

 

slider= new SliderField(
Bitmap.getBitmapResource( "img/slider2_thumb_normal.png" ), Bitmap.getBitmapResource( "img/slider2_progress_normal.png" ), Bitmap.getBitmapResource( "img/slider2_base_normal.png" ),
Bitmap.getBitmapResource( "img/slider2_thumb_focused.png" ), Bitmap.getBitmapResource( "img/slider2_progress_focused.png" ), Bitmap.getBitmapResource( "img/slider2_base_focused.png"),
40, 0, 16, 16, FOCUSABLE );

 

 

but i'dont know how to set maxValues of it, and how to make it move When MediaPlayer work 

plz Help.

Regard.

 

Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: SliderField : Max Values of Slider and auto move when play Media;

what sliderfield are you referring?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Contributor
Posts: 5
Registered: ‎12-14-2012
My Device: 9700
My Carrier: AppDev

Re: SliderField : Max Values of Slider and auto move when play Media;

It's a sliderfield from AdvanceUI app demo. I want to make a processbar of music player and it can seek in bar to play in anothertime of music. But I haven't idea to do it. Can you give me some advice??

 

Thx for reply.

 

Regard