1

Center title of activity in android action bar

view story
linux-howto

http://stackoverflow.com – Right now the title of my activity shows to the left as < Title and then the other menu item shows to the right. I want to center my title and leave out the <. How do I do that? I am using typical menu which I call using public boolean onOptionsItemSelected(MenuItem item) and @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.yesterday, menu); return true; } EDIT: I am not even sure this is the correct approach. Still I got a NPE when I tried this in my on (HowTos)