Can I center align the application name in android?
by default the application name is aligned in the left side.
so how to make it aligned center?
suggest use android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" instead. To keep using default styles for the customised TextView, try something like style="@style/TextAppearance.
How do you make it appear in the center? ActionBar actionBar = getActionBar(); actionBar. setDisplayShowTitleEnabled(true); actionBar. setTitle("Canteen Home"); actionBar.
please set your layout and textview gravity to center if it is not working then try textview layoutGravity to center
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With