I'm using the ActionBarSherlock
for my application and this is the code I use to hide the Title
of ActionBar
:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayUseLogoEnabled(true);
setContentView(R.layout.main_fragment);
}
The problem with this is that when the application starts there is a short amount of time when the Logo
and Title
are shown simultaneously. This looks really ugly, How can I get rid of that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…