For example textview with size 33.0 dp in xml. It means double number or it has other features?
Asked
Active
Viewed 1,166 times
1
-
`dp` / `dip` = Density Independent Pixels, see http://stackoverflow.com/questions/2025282/difference-of-px-dp-dip-and-sp-in-android – zapl Sep 24 '12 at 11:38
-
`dp` is telling Android that the number you gave is in `Density Pixels`, which allows you to use a floating point number – mrres1 Sep 24 '12 at 11:38
1 Answers
1
I assume you're referring to either layout_width or layout_height; in this case these numbers are always floating point. The ".0" on the end has no particular significance.
See http://developer.android.com/reference/android/R.attr.html#layout_width for more information.

Jules
- 14,841
- 9
- 83
- 130