android - How to set layout and drawable on 7" two different tablet? -


i have 2 7 inch tablets. 1 tablet has resolution 800*480 , other has 1024*600. i'm facing following problem :

1) both tablet (1024*600) , tablet (800*480) can run on layout-sw600dp , how can make different folder run app in both resolution.

2) how can make differentdrawable folder both tablets .

any 1 have idea issue

note:already read article not getting specific folders. http://developer.android.com/guide/practices/screens_support.html#overview

normal 7 inch devices have lower resolutions of 1024 * 600. mdpi devices. drawable qualifier can change. (from own experience, first put folder drawable-large-mdpi 7 inch devices , check on nexus 7. if there no problem images, don't have put folder. because if particular folder not present, android check nearest possible folder , optimize device screen)

the better practice put following drawables

   //for 7 inch tablets   drawable-large-mdpi   drawable-large-hdpi(for nexus 7)   // 10 inch tablets  drawable-xlarge-mdpi 

in rare case want customize ui, example 7” vs. 10” tablets, can define smallest widths:

 res/layout/main_activity.xml           # phones  res/layout-sw600dp/main_activity.xml   # 7” tablets  res/layout-sw720dp/main_activity.xml   # 10” tablets 

for more details refer post check new tool managing screens


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -