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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:46:26+00:00 2026-06-16T16:46:26+00:00

Recently i develop an app for Galaxy 10.1 ,7 inch with 1024×600 ,480×800,Note with

  • 0

Recently i develop an app for Galaxy 10.1 ,7 inch with 1024×600 ,480×800,Note with 800 height abd S3 with 720 height. they are all running perfectly on these resolution. But when we talk about note 2 and galaxy 7 plus and other we got several issues .Which are that the layouts are not correctly seen on these devices. At that iam facing a problem in layouts i use layouts folder for note as layouts-normal-xhdpi-1280×800 and for S3 layouts-normal-xhdpi-1280×720 and put all the layouts in one folder which makes one apk supporting all these layouts.

But when customers download the apk they deal with a problem which was that the Galaxy note picking the layout-normal-xhpi-1280×720 layouts and it was right but S3 and Galaxy Note 2 have different density .

Because of that problem I can’t figure out how to declare layout folder for S3 and Note 2.
Is there any way that i use only default four folders

Layout Xlarge

Layout Xhdpi with normal

Layout mdpi

Layout hdpi with normal

and supports these all layouts for all screen like S3 ,note 1, note 2, 7 inch plus and others. When i try to start my project i always thought about the big famous games like one of these is “Temple Run” which runs on all mobiles and tabs.

Making bunch of layouts folder make my app heavy like it crosses 80MB limit and Google market only accepts less than 50MB apps.

Pro grammatically is there any way that we use only one layout folder and support this layout on all screens.
I read number of articles and android developer portal but they did not satisfy me.They all said you have to make different layouts folder for different screens and even on stackoverflow i saw the same situation for saving my time in first projects
I use these techniques but my work is now increasing day by day and i want that i start with those techniques which make my app not heavy because of these bunch of layouts plus not waste my time in making number of layouts for numbers of app.

Number of helps will be appreciated and i want answers and suggestions because these problems are faced by number of developers which are new and others also.

  • 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-16T16:46:27+00:00Added an answer on June 16, 2026 at 4:46 pm

    I am also facing such problem in my application. But i found a good solution for this.
    I have only one layout for tablet and directory name is layout-sw600dp.
    Now, when part came to height and width problems, I have created several different values directory in which i place dimensions and font size and other stubs. So there will be no constant value in layout of tablet screen.

    androd:layout_width:"60dp" // i drop this scenario
    
    androd:layout_width:"@dimen/tab_width" // i used this scenario
    

    and your values directory name will be like

    values-xlarge
    values-large
    

    All the values will be fetched from your values directory. It will not create different layout, but one layout can be used multiple times.

    Edit:

    Following are words of Developer.android site.
    Configuration examples

    To help you target some of your designs for different types of devices, here are some numbers for typical screen widths:

    320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).
    480dp: a tweener tablet like the Streak (480x800 mdpi).
    600dp: a 7” tablet (600x1024 mdpi).
    720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc).
    

    Using the size qualifiers from table 2, your application can switch between your different layout resources for handsets and tablets using any number you want for width and/or height. For example, if 600dp is the smallest available width supported by your tablet layout, you can provide these two sets of layouts:

    res/layout/main_activity.xml # For handsets
    res/layout-sw600dp/main_activity.xml # For tablets

    ===

    In this, you can see that, layout for 1280*720 is under layout-sw720dp so instead of creating layout-normal-xlarge you should use this thing which lets you to decide differences. Instead of identify differently using layout-large-mdpi and layout-large-ldpi, are’t you just identify by its smallest width? Because, android providing drawables directory for different images, only thing is its resolution. And you have above solution.

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

Sidebar

Related Questions

Recently I was asked to develop an app, which basically is going to use
I recently had the MacBook I'm using to develop an app (for work) rebuilt.
I need to develop my app with multiple screen size support. I recently watched
I have a brief conceptional question: Recently, I started to develop an app in
I develop an App and recently I've caught me on the thought. What of
I've started Android programming recently so bear with me :) I develop an app
I recently started to develop an iPhone App. Coming from C#, Objective-C has some
I have recently develop one app with In-App purchase. App is also approved by
We recently started to develop a Java desktop app and management has requested that
I've been programming for a while, but I just recently started to develop application

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.