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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Regular Contributor
Posts: 59
Registered: ‎03-06-2012
My Device: 9700
My Carrier: airtel

Align images at the bottom of the screen

Hi All,

 

   I want to add a bar at the bottom of the screen which has images and a string ,i wanted to have the spacing equally like

 

img1 string       img2|img3

 

this is how i wantt o show i havbe the following code,how to align this?

HorizontalFieldManager horizontalFieldManager = new HorizontalFieldManager(
                FIELD_BOTTOM) {
            public void paint(Graphics graphics) {
                graphics.setBackgroundColor(0x316AC5);
                graphics.clear();
                super.paint(graphics);
            }
        };

    final ImageButtonField unfocus = new ImageButtonField("",
                Field.FOCUSABLE | FIELD_LEFT, "TimeZone_Fade_blue.PNG",
                "TimeZone_Fade_blue.PNG", 0xFFFFFF);

        final ImageButtonField bitmapField = new ImageButtonField("",
                Field.FOCUSABLE | FIELD_HCENTER, "Cal_icon_blue.PNG",
                "Cal_icon_onSelect.PNG", 0xFFFFFF);

        final ImageButtonField bitmapField1 = new ImageButtonField("",
                Field.FOCUSABLE | FIELD_RIGHT, "TimeZone_Button_blue.PNG",
                "TimeZone_Btn_OnSelect.PNG", 0xFFFFFF);
            horizontalFieldManager.add(unfocus);

        horizontalFieldManager.add(bitmapField);

        horizontalFieldManager.add(bitmapField1);

        this.setStatus(horizontalFieldManager);

 

i cannot even see the whole bar at the bottm,please help me

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

Re: Align images at the bottom of the screen

http://supportforums.blackberry.com/t5/Java-Development/How-to-Extend-Manager/ta-p/446749
----------------------------------------------------------
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
Regular Contributor
Posts: 59
Registered: ‎03-06-2012
My Device: 9700
My Carrier: airtel

Re: Align images at the bottom of the screen

i cannot access the link ,its getting blocked.please explain me with the above code what i am doing.I am unaware of it
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Align images at the bottom of the screen

There is unfortunately a lot of information to be passed on for you to understand what is going wrong, I don't think a forum post will do it.  The video is a good start.  If that is blocked, then try this

 

http://supportforums.blackberry.com/t5/Java-Development/Create-a-custom-layout-manager-for-a-screen/...

 

I suspect you will also find this enlightening:

http://supportforums.blackberry.com/t5/Java-Development/MainScreen-explained/ta-p/606644

Regular Contributor
Posts: 59
Registered: ‎03-06-2012
My Device: 9700
My Carrier: airtel

Re: Align images at the bottom of the screen

i could have tried all those,but i don't have time to understand n change pls help me providing the example.
Highlighted
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Align images at the bottom of the screen


sheetaloswal wrote:
i could have tried all those,but i don't have time to understand n change pls help me providing the example.

Go ahead and hire a professional developer, then. 

----------------------------------------------------------
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