How do you center a linear layout?

Trần Vũ

New member
How do you center a linear layout?
Answer
So either put android_gravity=”center” on the parent or
android:layout_gravity=”center”
on the LinearLayout itself.
 

Tìm kiếm

Back
Top