一些长期更新的小东西,容易忘记的
2017-05-16 19:35
323 查看
去标题
getSupportActionBar().hide();
去状态栏
getWindow()
.setFlags(WindowManager.LayoutParams
.FLAG_FULLSCREEN, WindowManager.LayoutParams
.FLAG_FULLSCREEN);
沉浸式
//透明状态栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
//透明导航栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
android:fitsSystemWindows="true"
android:clipToPadding="true"
//其他
if
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
//透明状态栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
//透明导航栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
SystemBarTintManager
tintManager = new
SystemBarTintManager(this);
//
激活状态栏 tintManager.setStatusBarTintEnabled(true);
//
enable navigation bar tint 激活导航栏 tintManager.setNavigationBarTintEnabled(true);
//设置系统栏设置颜色
//tintManager.setTintColor(R.color.red);
//给状态栏设置颜色
tintManager.setStatusBarTintResource(R.color.mask_tags_1);
//Apply
the specified drawable or color resource to the system navigation bar.
//给导航栏设置资源
tintManager.setNavigationBarTintResource(R.color.mask_tags_1); }
jar包
compile'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile'org.xutils:xutils:3.5.0'https://github.com/wyouflf/xUtils3
3.
http://www.cnblogs.com/JohnTsai/p/4715454.html
compile 'com.android.support:design:22.2.0' 后面的22.2.0要和v7包的版本一致
-- TableLayout
4.
http://blog.csdn.net/lmj623565791/article/details/36677279
http://blog.csdn.net/lmj623565791/article/details/36677279 SlidingMenu侧滑菜单
5
网络判断跳转到网络界面
http://blog.csdn.net/wangjia55/article/details/7924664 我的文档 http://note.youdao.com/noteshare?id=8f6eb09c2d2a8cf43f4c833f09731a14
studio设置自动导包:
http://blog.csdn.net/buaaroid/article/details/44979629
getSupportActionBar().hide();
去状态栏
getWindow()
.setFlags(WindowManager.LayoutParams
.FLAG_FULLSCREEN, WindowManager.LayoutParams
.FLAG_FULLSCREEN);
沉浸式
//透明状态栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
//透明导航栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
android:fitsSystemWindows="true"
android:clipToPadding="true"
//其他
if
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
//透明状态栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
//透明导航栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
SystemBarTintManager
tintManager = new
SystemBarTintManager(this);
//
激活状态栏 tintManager.setStatusBarTintEnabled(true);
//
enable navigation bar tint 激活导航栏 tintManager.setNavigationBarTintEnabled(true);
//设置系统栏设置颜色
//tintManager.setTintColor(R.color.red);
//给状态栏设置颜色
tintManager.setStatusBarTintResource(R.color.mask_tags_1);
//Apply
the specified drawable or color resource to the system navigation bar.
//给导航栏设置资源
tintManager.setNavigationBarTintResource(R.color.mask_tags_1); }
jar包
compile'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile'org.xutils:xutils:3.5.0'https://github.com/wyouflf/xUtils3
3.
http://www.cnblogs.com/JohnTsai/p/4715454.html
compile 'com.android.support:design:22.2.0' 后面的22.2.0要和v7包的版本一致
-- TableLayout
4.
http://blog.csdn.net/lmj623565791/article/details/36677279
http://blog.csdn.net/lmj623565791/article/details/36677279 SlidingMenu侧滑菜单
5
网络判断跳转到网络界面
http://blog.csdn.net/wangjia55/article/details/7924664 我的文档 http://note.youdao.com/noteshare?id=8f6eb09c2d2a8cf43f4c833f09731a14
studio设置自动导包:
http://blog.csdn.net/buaaroid/article/details/44979629
相关文章推荐
- Java基础知识点记录(主要记录一些不常见或者容易忘记的知识点,时刻更新)
- 我的JAVA学习笔记(记下一些容易忘记的知识点)持续更新
- ORACLE海量数据频繁更新容易出一些怪问题
- WPF 一些容易忘记的控件属性
- 总结一些你肯定会用到的东西(长期更新)
- 记录一些容易忘记的属性 -- UILabel
- 发现一些容易忘记的细节
- Java 中要注意的一些,也是我们容易忘记的!
- 记录一些容易忘记的属性 -- UIKeyboard
- 容易忘记的android 知识点(实时更新)
- 关于正则的一些笔记(长期更新)
- 记录一些容易忘记的属性 -- UIView
- 滚动条小结 平时容易忘记的小东西 JAVASCRIPT
- 收集javascript中一些容易忽略的知识(不断更新)
- Oracle的备忘一些经常出错的地方 长期更新
- 一些常规小算法【长期更新】
- JavaScrpt 操作数组的一些方法 [长期更新]
- sql 语句 容易忘记的一些东西
- Oracle的备忘一些经常出错的地方 长期更新