2

In my app, so far I have used these layout folders

layout-ldpi
layout-mdpi
layout-hdpi
layout-large-hdpi
layout-large-mdpi
layout-xhdpi
layout-xxhdpi
layout-xxxhdpi

Still, I am getting complaints about UI in some phones like Samsung Gaxay Grand 2 (280 ppi, 5.25" , 720 x 1280 pixels).

It is impossible to test app in every devices. So what are the common hardware profiles that I should set in my AVD so that most of the phones are covered up??

Hirak Chhatbar
  • 3,159
  • 1
  • 27
  • 36

3 Answers3

1

There are a few known issues in Samsung phones. See this questions:

  1. one
  2. two
  3. three
Community
  • 1
  • 1
anil
  • 2,083
  • 21
  • 37
0

Did you try adding few more drawable folder like

layout-xlarge-hdpi
layout-xlarge-xhdpi

We are using this for few devices and it works. Could not able to test it in galaxy grand 2.

Yuva Raj
  • 3
  • 1
  • This way, we need to add about 15 layout folders to cover maximum devices. This will be way too much worksome!! – Hirak Chhatbar Jan 22 '15 at 12:31
  • Different devices have different permutation combinations so its better to have individual folders instead of grouping it like nodpi – Yuva Raj Jan 22 '15 at 12:41
0

Try to use

layout-long
layout-notlong

instead of

layout-ldpi
layout-mdpi
layout-hdpi
layout-large-hdpi
layout-large-mdpi
layout-xhdpi
layout-xxhdpi
layout-xxxhdpi
Lennon Spirlandelli
  • 3,131
  • 5
  • 26
  • 51
  • not getting the desired result... still the same problem in many devices – Hirak Chhatbar Jan 23 '15 at 16:04
  • Are you setting size of the components in xml? Or you're using wrap_content and match_parent. – Lennon Spirlandelli Jan 23 '15 at 16:10
  • size of components is mostly wrap_content and match_parent except at couple of places.... The major issue is text sizes – Hirak Chhatbar Jan 24 '15 at 03:14
  • 1
    You must set the text size according to screen size. I suggest you to use any device and try to find a better size for the texts, then you have divide the screen size by the right text size, so you will have a number. After that, you are able to multiply the screen size by this number, so you will have the text size again. Doing it, you can set the text size according to each screen size and your problem is resolved. – Lennon Spirlandelli Jan 24 '15 at 22:15