Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

application name center alignment in android`

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?

like image 599
Strife Avatar asked Jan 07 '12 05:01

Strife


People also ask

How do I center my title on android?

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 can set action bar title in center in android?

How do you make it appear in the center? ActionBar actionBar = getActionBar(); actionBar. setDisplayShowTitleEnabled(true); actionBar. setTitle("Canteen Home"); actionBar.


1 Answers

please set your layout and textview gravity to center if it is not working then try textview layoutGravity to center

like image 121
Rishi Avatar answered Sep 28 '22 00:09

Rishi