boy1025

Android实现透明式状态栏

1. 修改style样式

clip_image002

2.  创建values-v19文件夹

3.  在这个文件夹下创建style.xml

clip_image003

4.  对activity_main.xml进行修改

clip_image005

  移除这个布局下的:android:fitsSystemWindows="true"

5.  在Toolbar下添加: android:fitsSystemWindows="true"

6.  效果

image

 

 

 

 

 

 

 

 

 

 

 

 

 

Ok,完成

分类:

技术点:

相关文章:

  • 2021-10-06
  • 2021-10-16
  • 2021-11-20
  • 2021-11-20
  • 2021-12-19
  • 2021-12-16
  • 2021-11-20
  • 2022-02-01
猜你喜欢
  • 2021-11-20
  • 2021-12-28
  • 2022-12-23
  • 2021-12-08
  • 2021-11-20
  • 2021-12-28
  • 2022-12-23
相关资源
相似解决方案