LinearLayout in Android?LinearLayout arranges its child views in a single row or column, either horizontally or vertically.
gravity differ from layout_gravity in Android layouts?gravity controls the alignment of content inside a view.<br>layout_gravity controls how the view itself is positioned inside its parent.
match_parent do when used for width or height?It makes the view expand to fill the size of its parent container in that dimension.
weight in a LinearLayout.weight lets child views share available space proportionally in a LinearLayout.
RelativeLayout and ConstraintLayout?RelativeLayout positions views relative to siblings or parent edges.<br>ConstraintLayout is more flexible and efficient, allowing complex positioning with constraints.
LinearLayout arranges children in one direction: horizontally or vertically.
layout_gravity="center" do?layout_gravity controls the view's position inside its parent container.
layout_weight="1" in a horizontal LinearLayout, what happens?Weight distributes leftover space proportionally among weighted views.
gravity aligns the content inside the view.
ConstraintLayout allows flexible and efficient positioning using constraints.
weight works in a LinearLayout and why it is useful.