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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:40:20+00:00 2026-05-21T11:40:20+00:00

I am new to Android layout development and have been tasked with designing and

  • 0

I am new to Android layout development and have been tasked with designing and developing an application.

I have created the absolute layout but it is giving me different ways to output in different android phone versions. For example, when I set the EditText, Button, TextView etc. in my phone, I get a perfect view but when it runs on the client’s phone it looks very bad.

It is very important for me to set the same view for different phones. I would appreciate if someone can provide code examples for controls in absolute layout so I can get the same output on all phones and set height and width so that they are same in phones with different resolutions.

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-21T11:40:21+00:00Added an answer on May 21, 2026 at 11:40 am

    If you’re using AbsoluteLayout you’re already doing it wrong. 🙂 It’s deprecated precisely because it makes working with multiple screen sizes unnecessarily difficult, just as you’ve observed.

    See RelativeLayout for a better approach. RelativeLayout lets you specify your layout in terms of rules, e.g. “Place view A along the top of the screen and stretch it to fill the full screen width. Place view B along the left edge below view A and let it be as tall as it needs to be to fit its content.”

    You should also reference the link posted in yogsma’s answer for more general advice.

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

Sidebar

Related Questions

I am new to Java programming / Android development - but I have been
I'm quite new to Android development (started 2 days ago) and have been through
I am still pretty new to Android development, and I have not been able
I am new to Android development and have been following the tutorials available on
I am absolutely new to the Android platform and have been building an application
I'm pretty new to Android development, but I have some experience with Java and
I am new to Android development. I have created an Activity with the ListView
I am new at android development and java programming, but I have decided to
I have been slowing learning and building my first android app. I'm VERY new
I am nearly finished with the development of an Android application. But there seems

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.