We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mActionBar = getSupportActionBar(); mActionBar.setDisplayOptions(mActionBar.getDisplayOptions() | ActionBar.DISPLAY_HOME_AS_UP);
The text was updated successfully, but these errors were encountered:
DisplayOptions是ActionBar显示的各种控制,DISPLAY_HOME_AS_UP是做上角图标显示,就是返回箭头。
Sorry, something went wrong.
这不是自定义的ToolBar吗 还要显示原有的角图么
这个是继承自Toolbar的控件,使用的时候要通过setSupportActionBar()去设置到Activity中,然后才能通过onCreateOptionMenu、onOptionMenuSelected等使用用,就把它当做Toolbar使用,只是标题居中了。
setSupportActionBar()
onCreateOptionMenu
onOptionMenuSelected
Toolbar
No branches or pull requests
mActionBar = getSupportActionBar();
mActionBar.setDisplayOptions(mActionBar.getDisplayOptions() | ActionBar.DISPLAY_HOME_AS_UP);
The text was updated successfully, but these errors were encountered: