您的位置:首页 > 其它

一些长期更新的小东西,容易忘记的

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息