1

For example textview with size 33.0 dp in xml. It means double number or it has other features?

Vahan
  • 3,016
  • 3
  • 27
  • 43
  • `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 Answers1

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