Buttons are not centered


#1

on the book the buttons are centered but mine isn’t.
i tried the gravity attribute but nothing happens. pls help…


#2

What does your layout look like?


#3

You probably use layout_gravity instead of gravity