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 8951153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:35:47+00:00 2026-06-15T13:35:47+00:00

I need to make a screen like this: The only thing I need to

  • 0

I need to make a screen like this:
enter image description here
The only thing I need to add to my code
is something to put the background image
behind those buttons.

This is what I have so far:

public class PruebaScreen extends MainScreen{
    public PruebaScreen(){
         LabelField title = new LabelField("Screen Title");
         title.setPadding(40, 0, 20, 60);

         BitmapField btn1 = new BitmapField(Bitmap.getBitmapResource("btn-1.png"));
         btn1.setPadding(2,0,3,0);

         BitmapField btn2 = new BitmapField(Bitmap.getBitmapResource("btn-2.png"));
         btn2.setPadding(2,0,3,0);

         add(title);
         add(btn1);
         add(btn2);

    }
}

How should I do to put those two buttons
over the background image?.
The image should not take all the screen.

Thanks in advance.

  • 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-06-15T13:35:48+00:00Added an answer on June 15, 2026 at 1:35 pm

    You should

    1. Create a manager (VericalFieldManager)
    2. Set the desired background for the manager
    3. Add the buttons to the manager
    4. Add the manager to the screen

    Here is a code snippet that creates a solid color background:

        LabelField title = new LabelField("Screen Title");
        title.setPadding(40, 0, 20, 60);
    
        VerticalFieldManager vfm = new VerticalFieldManager(USE_ALL_WIDTH);
        vfm.setBackground(BackgroundFactory.createSolidBackground(Color.BLUE));
        vfm.setPadding(20, 0, 20, 0);
    
        ButtonField btn1 = new ButtonField("Option 1");
        btn1.setPadding(2, 0, 3, 0);
    
        ButtonField btn2 = new ButtonField("Option 2");
        btn2.setPadding(2, 0, 3, 0);
    
        add(title);
        vfm.add(btn1);
        vfm.add(btn2);
        add(vfm);
    

    To make the background a bitmap, just replace

        vfm.setBackground(BackgroundFactory.createSolidBackground(Color.BLUE));
    

    with

        vfm.setBackground(BackgroundFactory.createBitmapBackground(YOUR BITMAP);
    

    enter image description here

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

Sidebar

Related Questions

I need to make a background for a website cover the entire screen, BUT
I need to calculate the screen width on orientationchange. I'm doing it like this:
I need to make 3:4 window, where 3 is 75% of screen. How could
I am trying make long screen to vertical direction. So, I need a screen
I need to validate a user's screen name to make sure that it can
I need to make a administrative GUI with lots of functionality like lists, forms,
I need to make a moderate system like the one in fmylife.com. Basically the
My code for creating the data table looks like this: myDataTable = new YAHOO.widget.ScrollingDataTable(
I have about 10-20K records and only need certain cities. I would like to
I need make some action (dump statistical data) before the Dart program ends. The

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.