How To Determine Smallest Width Of Android Device
I am new to the concepts of android layouts associated with different screen sizes. I wish to make a different layout for a tab which is of 8' and place it in a 'layout-swxxxx' fol
Solution 1:
The formula linking dp, pixels and density is as follow :
px = dp * (dpi / 160)
Therefore, in your case,
widthInDp = widthInPx / (dpi / 160)
widthInDp = 1200 / (283 / 160)
widthInDp = ~678dp
So you're gonna want to use a bucket such as sw600dp
Reference : http://developer.android.com/guide/practices/screens_support.html
Post a Comment for "How To Determine Smallest Width Of Android Device"