Difference between android:width and android:layout_width

后端 未结 1 568
一整个雨季
一整个雨季 2021-01-01 19:56

in the following code why the appearance of the radio button changes when i set

 android:layout_width=\"fill_parent\"

and

相关标签:
1条回答
  • 2021-01-01 20:26

    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.

    0 讨论(0)
提交回复
热议问题