-1

In my app there are three layout folder.

1)layout(for 480x800 resolution with **hdpi**)
2)layout-large(for 1024x600 resolution with **mdpi**)
3)layout-xlarge(for 1280x800 resolution with **mdpi**)

but i have new tablet for i-ball with resolution (1024x600 -> **hdpi**).

i don't know how to create design for this tablet.

this i-ball device is take layout file from layout layout(for 480x800 resolution with hdpi) folder. but its not looking good design compare with other resolution devices.

Please give me solution for design issue in this device .

Thanks in advance.

dipali
  • 10,966
  • 5
  • 25
  • 51
  • You can create it like layout-large-hdpi...for more details please refer this link http://developer.android.com/guide/practices/screens_support.html – khubaib Sep 21 '13 at 09:45
  • Use Full Link for u http://developer.android.com/guide/practices/screens_support.html – Naveen Tamrakar Sep 21 '13 at 09:46
  • Earlier you said that you have make three different layout and the resolution of i-ball tablet is 1024x600 -> **hdpi** but by default it takes 480x800 resolution with hdpi... So just go with layout_large with hdpi... – Piyush Sep 21 '13 at 09:47
  • @khubaib how many folder i have create? and how we know which images is put in above resolution device.designer have created 600x1024,1280x800,480x800 resolution images...then how i know which image is preffer? – dipali Sep 21 '13 at 09:48
  • @piyush this device can not take images from layout-large folder. – dipali Sep 21 '13 at 09:49
  • @dipali if it can't take it so there is one choice. – Piyush Sep 21 '13 at 09:51
  • @dipali should go with xhdpi folder for layout – Piyush Sep 21 '13 at 09:53
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/37777/discussion-between-dipali-and-piyush-gupta) – dipali Sep 21 '13 at 09:55
  • @dipali how many folders to create depends on how many different phones you want your app to support. say you are supporting devices not only changes in the resolution and from factor.but devices with different sizes also. then you must have layouts/drawables placed in different folders to support it universally. regarding which image is preferred it is up to you which images you are placing in which drawable folder. – khubaib Sep 21 '13 at 10:10

1 Answers1

0

Samsung Galaxy S3 has same issue..

Here is sample logic of achieve for Samsung Galaxy S3 device, you can also try for your device.

for example to find the Samsung Galaxy S3 dp to suffix to drawable-sw?

dp With reference of DP Calculation, If you want to support your layout or drawable to S3 then the calculation says

px= Device's width = 720 dpi= Device's density= 320

formula given

px = dp * (dpi / 160)

interchanging formula because we have px's value

dp = px / (dpi / 160)

now putting value,

 dp= 720 / (320/160);
 dp=360. 

so drawable-sw360dp will do the job

Check this Answer for more detail.

Community
  • 1
  • 1
Niranj Patel
  • 32,980
  • 10
  • 97
  • 133