SeperatorField grooveeffect
SeparatorField s1;
Separator VerticalFieldManager = new VerticalFieldManager (Manager.USE_ALL_WIDTH);
seperator.setPadding (0, 0, 0, 0);
seperator. Add (s1 = new SeparatorField());
S1.setMargin (0, 0, 0, 0);
seperator. Add (s1 = new SeparatorField());
S1.setMargin (0, 0, 0, 0);
loginScreen. Add (seperator);
I'm trying to field separator two attch to get the grooveline as shown bvellow effect
But the two were not defined by the space between twofield zero?
How can I achieve this effect seperator?
Tags: BlackBerry Developers
Similar Questions
-
Separator field in os 4.3?
I have an application that has a version of the jde 4.3 and seperatorfield does not work. its not found in the api. It's called something different, or is there a different way, you must make a line separator when using jde 4.3?
Since JDE 4.2, net.rim.device.api.ui.component.SeparatorField is available! What is the problem you are having?
-
Strange black gap after the title screen
Hello
I have a simple screen with a LabelField I put as a title. After that, I add a SeperatorField to the screen. Since I use a color different than black for the background of my title field, I can see a black area about 5 pixels between where ends the title field and the field separator. This happen when running with OS 4.6.
When you run the same code on a simulator with OS 4.5, there is no such black gap.
Someone has seen this before and may know a work around? I already tried all possible settings as a zero margin and margin inner but not luck so far.
Thank you.
Daniel
The default title bar some theme related problem. I don't think that you can customize the default title bar.
Try something like this instead of using the setTitle() method:
import net.rim.device.api.ui.*;import net.rim.device.api.ui.component.*;import net.rim.device.api.ui.container.*;import net.rim.device.api.system.*; class TestScreen extends MainScreen{ private HorizontalFieldManager titleManager; private VerticalFieldManager mainManager; TestScreen() { super(NO_VERTICAL_SCROLL); /////////////////START OF TITLE/////////////////// LabelField titleLabel = new LabelField("Title Text"); titleManager = new HorizontalFieldManager() { protected void paintBackground(Graphics graphics) { graphics.setBackgroundColor(0x00dddcdd); graphics.clear(); super.paint(graphics); } }; titleManager.add(titleLabel); ////////////////////END OF TITLE/////////// /////////////////START OF MAIN MANAGER//////// //rather than adding component in the mainScreen //add components in this verticalManager and then //add this manager to mainScreen mainManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR) { protected void paintBackground(Graphics graphics) { graphics.setBackgroundColor(0x00000000); graphics.clear(); super.paint(graphics); } protected void sublayout( int maxWidth, int maxHeight ) { int width = Display.getWidth(); int height = Display.getHeight() - titleManager.getPreferredHeight(); super.sublayout( width, height); setExtent( width, height); } }; ButtonField btnTest = new ButtonField("Test Button"); mainManager.add(btnTest); /////////////////END OF MAIN MANAGER/////////////// this.add(titleManager); this.add(mainManager); }}
Concerning
Bika
Maybe you are looking for
-
Qosmio G30 (PQG32L) - can use only 3.25 GB of memory on Windows 7 64 bit
My Qosmio G30 (PQG32L) found 4 GB of memory, but only 3.25 GB of memory can be used. I'm updating to Windows 7 64-bit, but it does not help.BIOS reports 4 GB of RAM. Windows 7 64-bit operating system Anyone can activate the Qosmio G30 usable memory t
-
Impossible to install BT worm on Vista x 64 RTM Ultimate 5.10.01
Hi, I happily downloaded the new 5.10.01 BT stacks but experiencing problems to install the Vista x 64 onmy machine. The installation will give me an error with the complainant Addmonitor window %1 is not a valid win32 application. After that I have
-
M1212nf MFP do not automatically receive faxes - I always have to press to receive faxes.
Everything was ok when we bought the thing - he worked for several days without problem. And then just stoped to receive faxes automatically. It is set up to automatically answer after 5 rings (tried them all, min and max - help do not). Now press th
-
Why my webcam does not work? as its not connect to my friend. work very well, he knows when we start our webcam, it stay just loading. is it on my webcam or our connection have some problems? If I have webcam with my other friends, it works very well
-
I was wondering if the graphics card in my desktop computer can work with a new
I have HP Pavilion Elite e9180f Desktop PC product number np267aa-2al Windows vista 62 bit Edition home premium I was wondering if I buy a new nivida graphics card will be able to run the office came with the gts 250 I think... Like what I have to re