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
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: 16,999
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.
Developer
Posts: 16,999
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