Question

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

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top