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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:21:28+00:00 2026-06-09T18:21:28+00:00

I am building a simple Android app, but I am having trouble getting the

  • 0

I am building a simple Android app, but I am having trouble getting the layout to look OK on both the Galaxy S (480×800) and the Galaxy S3 (720×1280). Here’s how it’s looks right now on the S (which is how I want it to look):

enter image description here

And on the S3:

enter image description here

As you can see there are two things wrong: the top margin is not enough on the S3, and the buttons are too small after the re-sizing. I am using “dp” everywhere though.

I believe both screens are considered “normal” size, so creating a “layout-large” folder where I could tweak the margins wouldn’t work, right?

The only other option I can think about is to create IFs on my code checking for specific phone models, and adjusting the margin value accordingly. Would this work, or is there a better way?

Thanks

  • 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-09T18:21:29+00:00Added an answer on June 9, 2026 at 6:21 pm

    Its not just about using dp. Your going to want to use multiple techniques that android offers to achieve screen independence.

    So if I were creating this layout I would do the following. Use a RelativeLayout as the parent view. Add the logo/header to the top with some dp as padding for top and center horizontally. Add a linear layout with a draw 9 background version of the box, inside the linear layout i would add the three buttons. Then either below that or align with the bottom of the RelativeLayout i would add questions button.

    Below are a bunch of links to how to use some of these tools.

    Relative Layout
    http://developer.android.com/guide/topics/ui/layout/relative.html

    Draw Nine’s
    http://developer.android.com/tools/help/draw9patch.html

    Linear Layout
    http://developer.android.com/guide/topics/ui/layout/linear.html

    Edit as t0mm13b above pointed out this is also a good link to read.
    http://developer.android.com/guide/practices/screens_support.html

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

Sidebar

Related Questions

I'm building a fairly simple Android app (sdk revision 14: ICS) which allows users
I thought I'd have a crack at building an Android app having not done
I've just started out building a very simple score screen for my app but
I'm building a real simple Android app and a lot is going wrong. I
Am new to Android, and am building a simple calculator app. I want to
I`m building an android App, and i got stuck with a simple thing: How
Building an app using android.support.v4.app , targeting API level 8. Everything's working as planned
Just starting out on android developing. To start off, I'm building an app which
I am building this app and I can't make it work. Here is the
I am building a simple java/android application, and am trying to change the value

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.