android沉浸式状态栏
来源:互联网 发布:深入浅出 python 中文 编辑:程序博客网 时间:2024/04/30 10:05
1、java代码,在setContentView方法前调用:
SystemBarTintManager.initSystemBar(this);
SystemBarTintManager类的下载地址:点我下载
2、布局文件中:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#eee" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#0056ac" android:clipToPadding="true" android:fitsSystemWindows="true"> ...标题栏写在这 </RelativeLayout> ...其他内容 </LinearLayout>......
其他:RecyclerView的下拉刷新上拉加载
0 0
- Android 沉浸式状态栏
- android 沉浸式 状态栏
- android 沉浸式状态栏
- android沉浸式状态栏
- Android沉浸式状态栏
- Android 沉浸式状态栏
- android 沉浸式状态栏
- Android沉浸式状态栏
- Android沉浸式状态栏
- Android 沉浸式状态栏
- Android沉浸式状态栏
- android 沉浸式状态栏
- android 沉浸式状态栏
- Android沉浸式状态栏
- android沉浸式状态栏
- Android 沉浸式状态栏
- android沉浸式状态栏
- Android沉浸式状态栏
- 算法竞赛与入门经典 (第一章)
- java方法引用
- Android 通知栏Notification的整合 全面学习 (一个DEMO让你完全了解它)
- ActiveMQ之P2P点对点通信方式
- javascript基础
- android沉浸式状态栏
- 图片加载框架-Fresco
- Java解码网站post字符串(swich case用法和乱码判断)
- android-----UI布局之TabHost与TextView
- Abstraction and Structure——《Learning Python》抽象之函数
- 多线程编程
- 过滤器知识总结
- Android学习笔记(九):按钮添加点击事件的4种方式
- apache启动脚本