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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:27:06+00:00 2026-05-26T08:27:06+00:00

I have two buttons in a horizontal field manager. one i want to put

  • 0

I have two buttons in a horizontal field manager. one i want to put in left side of the screen and another in right side. How can i put them properly without implementing sub layout, so that it can work for all the device?

  • 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-26T08:27:06+00:00Added an answer on May 26, 2026 at 8:27 am

    i think creating your custom manager is best way to layout controls.
    but i think we can that

    VerticalFieldManager vfm = new VerticalFieldManager(USE_ALL_WIDTH);
            vfm.add(new ButtonField("button2",Field.FIELD_RIGHT));
    
            HorizontalFieldManager hfm = new HorizontalFieldManager();
            hfm.add(new ButtonField("button1"));
            hfm.add(vfm);
            add(hfm);
    

    Edit:

    if we are using HFM, it is the responsibility of HFM to align in horizontal.

    So

     HorizontalFieldManager hfm = new HorizontalFieldManager(FIELD_RIGHT);
            hfm.add(new ButtonField("button1"));
    

    above code will place button1 to right.
    but

    HorizontalFieldManager hfm = new HorizontalFieldManager();
            hfm.add(new ButtonField("button1",FIELD_RIGHT));
    

    above code will not align button right.
    So when you are using HFM
    you need to give horizontal align of field in manager and vertical alignment in field.

    When you are using VFM
    you need to give vertical alignment in manager and horizontal alignment in field.

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

Sidebar

Related Questions

I have two buttons, one for start recording and another for stop recording. i
I have two buttons, which the user can click and will open a FileDiagloag
I have two buttons at the top of a jQuery validated form: one saves
I have two buttons 'btnPrev' and 'btnNext' What I want to do is to
At work I have two XP PCs. On one, I can click with the
I have a Jquery Mobile controlgroup with two buttons: <div data-role=controlgroup data-type=horizontal class=headerMenu iconposSwitcher>
I would like to layout two buttons side by side and have multiple rows
here in above screen, i have two linear layouts, one for two TextView and
I am developing one app in which I want to create two buttons. These
I have two UIScrollViews, one horizontal, one vertical, both two pages each (as in,

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.