sliderfield
Hello
I do simple application under using sliderfield, but I have to adjust two variabes to a tim in the same field of cursor...
can help a whole me... is this possible and how?
Hi Sarvesh,
See this
http://supportforums.BlackBerry.com/T5/Java-development/SliderField-with-two-thumbs/TD-p/1480949
Thank you.
Tags: BlackBerry Developers
Similar Questions
-
Hello
I have a popup screen that contains a sliderfield. However, the background image can not be transparent, when I put a transparent png in it.
Thanks in advance.
Code:
Have we not need to see the cod SliderField to see how it uses the image? Or am I stupid?
You don't seem to want to show us this code, then maybe you can reproduce the problem with an another field that uses only the png as the background?
I assume that your png is actually transparent (or parts of it are)? Have you tried just a BitmapField with this picture to know if there is?
-
How to get the Position value current sliderField
I'm on SliderField for example following
But the problem is I want to get her current state value after each trip for this I use this code
but it is not updated LabelField with its current value
protected boolean touchEvent (TouchEvent message)
{
System.out.println ("method called touch");
int vall = sixthSlider.getNumStates ();
String txt = Integer.toString (vall);
lbtitle.setText (txt);
fieldChangeNotify (1);
Returns false;
}Two tips:
(1) you use getNumStates where you call getState!
(2) do not substitute the touchEvent at all. SliderField is a field almost entirely executed, so that she calls fieldChangeNotify on the changes of State. Set up a FieldChangeListener, configured to listen on this field and put your logic inside fieldChanged.
Good luck!
-
HII, I created a scroll bar by referring to the example:https://github.com/blackberry/Samples-for-Java/blob/master/Advanced%20UI/src/com/samples/toolkit/ui/...,.
hereby I am slider properly displayed on my screen, but my problem is next to the slider bar, I want to show a play/pause button, so i used the code below:
SerializableAttribute public class UIExampleSliderScreen extends UIExampleScreen {}
private ButtonField _startPlayingButton;
Private ButtonField stop;private ButtonField facebookButton;
public UIExampleSliderScreen() {}
Super (0);
_startPlayingButton = new ButtonField ("Play");
stop = new ButtonField ("Stop");facebookButton = new ButtonField ("Facebook");
facebookButton.setMargin (5, 5, 5, 5);
HorizontalFieldManager Manager = new HorizontalFieldManager();setTitle ("cursor screen");
final SliderField cursor;
cursor = new SliderField)
Bitmap.getBitmapResource ("slider2_thumb_normal.png"),
Bitmap.getBitmapResource ("slider2_progress_normal.png"),
Bitmap.getBitmapResource ("slider2_base_normal.png"),
Bitmap.getBitmapResource ("slider2_thumb_focused.png"),
Bitmap.getBitmapResource ("slider2_progress_focused.png"),
Bitmap.getBitmapResource ("slider2_base_focused.png"), 20,
0, 16, 16, FOCUSABLE).
slider.setPadding (20, 20, 20, 20);slider.setBackground (BackgroundFactory
.createSolidBackground (0xD3D3D3));Manager.Add (Slider);
Manager.Add (facebookButton);
Manager.Add (_startPlayingButton);
Manager.Add (Stop);
Add (Manager);}
}
}(1) I am able to show only the slide bar, my custom buttons are not displayed?
(2) the sliding bar is displayed on screen, fully, how can I reduce the length of my slide Bar?
the field of cursor seems to be designed to occupy the entire width:
public int getPreferredWidth()
{
Return Integer.MAX_VALUE;
}you have to change this, or replace available to the Manager.
See
http://supportforums.BlackBerry.com/T5/Java-development/how-to-extend-Manager/Ta-p/446749 -
Hello
In my pop class:
private static final int DEFAULT_ORIENTATION = Display.DIRECTION_NORTH; //
public PopScreen() {}
Super (new VerticalFieldManager());
/ * shake anti-ecran * /.
Ui.getUiEngineInstance () .setAcceptableDirections (DEFAULT_ORIENTATION) ;//
Add (sliderField);
}
I want to ban the change of direction of screen, but it will not work in os 6.0!
someone help me?
Thank you.
Thank you for what you have done. I must say that you're a serious and good man.
If you can't reproduce by following the path, then I'll accept this as resolved, then do it myself.
Maybe you are looking for
-
Connected devices no longer appear in the Finder under Devices window
Hi guys,. When I plug the external drives that they no longer appear in the Finder under Devices window. They appear on the desktop. See screenshot. How is it and how do I het their re = appear? Thank you very much Raphael
-
Digital potentiometer through materials
Does anyone have a quick reference to material that contains a digital pot? Is there material that does this? Can you create a digital pot through materials? Thank you.
-
Original title: Registry loading problem streets & trips I bought the MicroSoft Streets & Trips with GPS 2011 disc. After the loading and activation, I get the message "your registry settings for this application were not correctly copied. I uninstal
-
Is it possible for the other 'people' connects to my computer?
I tried to restart my computer because he did not, and he asked me if I'm sure that I wanted to restart because other people were connected to my computer and they may lose any unsaved files!
-
where am I going to install a missing rundll file called damste.dll file
When I connect I get a RUNDLL error message. Can I download the missing file?