Toolbar_ActionBar
来源:互联网 发布:51单片机引脚 编辑:程序博客网 时间:2024/05/16 07:32
Toolbar 添加返回键
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled( true); getSupportActionBar().setHomeButtonEnabled( true);
@Override public boolean onOptionsItemSelected(MenuItem item) { /*when click the app icon change the drawer state*/ if(item.getItemId() == android.R.id.home){ finish(); return true ; } return super .onOptionsItemSelected(item); }
0 0
- Toolbar_ActionBar
- The constructor ClassPathXmlApplicationContext(String) refers to the missing type
- java处理excel文件
- ubuntu14.10安装搜狗输入法 中文输出错乱解决方案
- SQL2008 创建定时任务作业
- Deep Learning(深度学习)
- Toolbar_ActionBar
- char* 和char[]的区别
- 221.Maximal Square
- 第三方登录流程图
- 解决Fragment中使用map,切换会闪一下黑屏的有关问题
- 字符串匹配
- 欢迎使用CSDN-markdown编辑器
- MySQL批量更新死锁案例分析
- Fragment FragmentManager FragmentTransaction 详解