SyntaxFix
Write A Post
Hire A Developer
Questions
Set the gravity attribute in the layout file as android:gravity="center"
android:gravity="center"