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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:26:28+00:00 2026-05-19T00:26:28+00:00

The optimum layout for controls might depend on the orientation. If I have a

  • 0

The optimum layout for controls might depend on the orientation. If I have a set of checkboxes or radio buttons they might fit well if I stack them vertically when the user holds the phone in a vertical orientation. But if the user flips to horizontal it might be better to arrange them into two shorter stacks side-by-side, instead of forcing the user to scroll.

Does Android have any UI guidelines that address whether it’s acceptable to use different layouts for vertical and horizontal? And if so, how would I implement it to use the same controls, i.e., the same ID’s for both layouts?

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-05-19T00:26:28+00:00Added an answer on May 19, 2026 at 12:26 am

    It is completely acceptable to use different layouts for horizontal and vertical. This is why Android provides the layout and layout-land folders for defining these.

    If it makes sense to you and will be easier for the user to navigate, then do it.

    To implement this, you create an xml file with the same name in both the layout and layout-land folders. You then specify the same android:id for each asset. For instance a textview would contain the same id in both xml files:

    <TextView android:text="@string/SomeText" 
            android:id="@+id/TextView01" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content">
    </TextView>
    

    It’s that simple.

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

Sidebar

Related Questions

What methods are available for determining the optimum stack size for embedded/memory constrained system?
What is the optimum number of projects in a Visual Studio 2008 solution? We
I would like to know how to measure/know that one's stored procedure is optimum
I am looking for an optimum way to create a table from n elements
The coding language is C#3.0 What is the most optimum method to retrieve all
I work for a fulfillment company and we have to pack and ship many
I have a column which is integer and I want to search all numbers
What could be the optimum programming languages (Perl, PHP, Java, Python or something else)
Is there such a thing as an optimum chunk size for processing large files?
I would like to find out what is the optimum way of storing some

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.