Skip to content Skip to sidebar Skip to footer

Difference Between Android:width And Android:layout_width

in the following code why the appearance of the radio button changes when i set android:layout_width='fill_parent' and android:width='fill_parent' i am talking about the _radi

Solution 1:

android:width is for setting an exact number of pixels.

android:layout_width can be a dimension, as above, or it can be one of fill_parent, match_parent, or wrap_content.

It is an error to use something other than a dimension for android:width.

Post a Comment for "Difference Between Android:width And Android:layout_width"