Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7018103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:00:00+00:00 2026-05-27T23:00:00+00:00

These are 6 Dashboard Buttons: Which needs to be Horizontally Centered ![\[1\]: https://i.stack.imgur.com/jg6q8.png][1] The

  • 0

These are 6 Dashboard Buttons: Which needs to be Horizontally Centered

Dashboard Buttons

  ![\[1\]: https://i.stack.imgur.com/jg6q8.png][1]

The current Code is Like:

            DashboardButtons = new VerticalFieldManager(Field.USE_ALL_WIDTH
                            | VerticalFieldManager.FIELD_HCENTER));

                    ButtonRow1 = new HorizontalFieldManager(Field.USE_ALL_WIDTH
                            | HorizontalFieldManager.FIELD_HCENTER);
                    ButtonRow2 = new HorizontalFieldManager(Field.USE_ALL_WIDTH
                            | HorizontalFieldManager.FIELD_HCENTER);

And the Fields are defined like :
b1 = new Field(Field.FOCUSABLE|FIELD_HCENTER)

And inside the fields I have added the Button images.

The icon at the top (got centered) is added directly inside a VerticalFieldManager defined with Field.USE_ALL_WIDTH| VerticalFieldManager.FIELD_HCENTER` And the icon field with FIELD_HCENTER

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:00:01+00:00Added an answer on May 27, 2026 at 11:00 pm

    I am giving you a sample code according to that you can modify:

    If you want the focus on images, You should give one image in ONFOCUS and another image on UNFOCUS.

    Below is the sample code:

    public class LoadingScreen extends MainScreen
    {   
    Font font;
    VerticalFieldManager vertical;
    Bitmap bitmap=Bitmap.getBitmapResource("btn_send.png");
    BitmapField bitmapField;
    ButtonField plus,minus;
    int px=0;
    int py=0;
    public LoadingScreen()
    {
        font=Font.getDefault().derive(Font.BOLD, 18);           
        createGUI();
    }
    
    public void createGUI() 
    {
        vertical=new VerticalFieldManager(USE_ALL_WIDTH);
    
        HorizontalFieldManager hor=new HorizontalFieldManager(Field.FIELD_HCENTER);
    
        BitmapField bitmapField=new BitmapField(bitmap);        
        hor.add(bitmapField);
        vertical.add(hor);
    
        HorizontalFieldManager hr=new HorizontalFieldManager(Field.FIELD_HCENTER);
    
        BitmapField bitmapField1=new BitmapField(bitmap);       
        hr.add(bitmapField1);
    
        BitmapField bitmapField2=new BitmapField(bitmap);
        hr.add(bitmapField2);
    
        BitmapField bitmapField3=new BitmapField(bitmap);
        hr.add(bitmapField3);
        hr.setPadding(10, 0, 10, 0);
        vertical.add(hr);
    
        HorizontalFieldManager hr1=new HorizontalFieldManager(Field.FIELD_HCENTER);
    
        BitmapField bitmapField4=new BitmapField(bitmap);       
        hr1.add(bitmapField4);
    
        BitmapField bitmapField5=new BitmapField(bitmap);
        hr1.add(bitmapField5);
    
        BitmapField bitmapField6=new BitmapField(bitmap);
        hr1.add(bitmapField6);
        hr1.setPadding(10, 0, 10, 0);
    
        vertical.setBackground(BackgroundFactory.createSolidBackground(Color.GREEN));       
        vertical.add(hr1);      
        add(vertical);
    }       
    }
    

    I got like this below Image:

    Images in Center

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am practicing these problems: http://code.google.com/codejam/contest/32016/dashboard#s=p1&a=1 I believe I have the correct solution, (even
I am currently implementing my dashboard. My current solution for buttons is this: <LinearLayout
These ribbon in stackoverflow and uservoice.com looks nice. is there any javascript library/jquery plugin
These days, more languages are using unicode, which is a good thing. But it
These instructions are a little intimidating and confusing: http://svnbook.red-bean.com/en/1.0/ch04s04.html#svn-ch-4-sect-4.3 . And also they don't
I have a dashboard page in which I am using various MSCharts. I have
I have created a class for a dashboard item which will hold information such
I have a dashboard which starts in a blank/default state. I am giving the
On the dashboard, there are many charts that we can look at. Which one
which file controls the links in the sidebar navigation on a customer's account dashboard?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.