Center align of text of title bar in Android
<p>I'm new at Android programming so I don't know all the features.
As I understood, all generated activities has a title bar which contains app_name string resource. I managed to change title of sole activity but I don't understand how to change alignment of the text of the title. I mean, the're generated like this:</p>

<p><a href="https://i.stack.imgur.com/Z53GG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z53GG.png" alt="enter image description here"></a></p>

<p>but I need it to be like this:</p>

<p><a href="https://i.stack.imgur.com/q6chk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q6chk.png" alt="enter image description here"></a></p>