title: How to center align the ActionBar title in Android?
body: <p>I am trying to use the following code to center the text in the <code>ActionBar</code>, but it aligns itself to the left. </p>
  
  <p>How do you make it appear in the center?</p>
  
  <pre><code>ActionBar actionBar = getActionBar();
  actionBar.setDisplayShowTitleEnabled(true);
  actionBar.setTitle("Canteen Home");
  actionBar.setHomeButtonEnabled(true);
  actionBar.setIcon(R.drawable.back);
  </code></pre>