title: How to align title at center of ActionBar in default theme(Theme.Holo.Light)
body: <p>I searched a lot but can not find a way, How can I set then title at center of ActionBar instead of left aligned. I used below code to set the title at center :</p>
  
  <pre><code>ViewGroup decorView= (ViewGroup) this.getWindow().getDecorView();
  LinearLayout root= (LinearLayout) decorView.getChildAt(0);
  FrameLayout titleContainer= (FrameLayout) root.getChildAt(0);
  TextView title= (TextView) titleContainer.getChildAt(0);
  title.setGravity(Gravity.CENTER);
  </code></pre>
  
  <p>But it gives error as below :</p>
  
  <pre><code>ClassCastException : com.android.internal.widget.ActionBarView can not 
  be cast to android.widget.TextView.
  </code></pre>
  
  <p>Any other solution ..Any help will be appreciated.</p>