What does android:layout_weight mean?

Viewed 373995

I don't understand how to use this attribute. Can anyone tell me more about it?

13 Answers

For additional

For vertical orientation, don't forget set height to 0dp

android:layout_height="0dp"

For horizontal orientation, don't forget set width to 0dp

android:layout_width="0dp"

Adding android:autoSizeTextType="uniform" will resize the text for you automatically

Related