T Trần Vũ New member Dec 27, 2021 #1 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.
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.