mToolBar = (Toolbar) findViewById(R.id.toolbar);
setActionBar(mToolBar);
- getActionBar().setTitle(getString(R.string.app_name).toUpperCase());
+ setActionBarTitle(getString(R.string.app_name));
// set the background on the root view
getWindow().getDecorView().getRootView().setBackgroundColor(
public void setActionBarTitle(String title) {
ActionBar actionBar = getActionBar();
- actionBar.setTitle(title.toUpperCase());
+ actionBar.setTitle(title);
}
public void setActionBarAlpha(int alpha) {
resourceId = R.string.search_title_songs;
break;
}
- actionBar.setTitle(getString(resourceId, mFilterString).toUpperCase());
+ actionBar.setTitle(getString(resourceId, mFilterString));
actionBar.setDisplayHomeAsUpEnabled(true);
// Set the prefix
MenuItem searchItem = menu.findItem(R.id.menu_search);
mSearchView = (SearchView)searchItem.getActionView();
mSearchView.setOnQueryTextListener(this);
- mSearchView.setQueryHint(getString(R.string.searchHint).toUpperCase());
+ mSearchView.setQueryHint(getString(R.string.searchHint));
// The SearchView has no way for you to customize or get access to the search icon in a
// normal fashion, so we need to manually look for the icon and change the