使用android:fitsSystemWindows="true"可以自动填充颜色。

文章资料

  • 支持刘海屏 https://developer.android.google.cn/guide/topics/display-cutout

  • 声明受限屏幕支持 https://developer.android.google.cn/guide/practices/screens-distribution

  • 显示屏缺口支持 https://developer.android.google.cn/about/versions/pie/android-9.0

  • 华为 刘海屏适配技术指导,了解一下? https://club.huawei.com/thread-15620158-1-1.html

  • OPPO凹形屏适配说明 https://open.oppomobile.com/wiki/doc#id=10159

  • VIVO 全面屏应用适配指南 https://dev.vivo.com.cn/documentCenter/doc/103

  • 小米刘海屏水滴屏 Android O 适配 https://dev.mi.com/console/doc/detail?pId=1293

  • Android 全面屏如何做适配 https://www.infoq.cn/article/android-all-screen

  • Android P的APP适配总结,让你快人一步 https://www.jianshu.com/p/eb3b0e83c86a

  • 解决DialogFragment全屏时状态栏变黑 https://blog.csdn.net/jingzz1/article/details/83061780

更多相关文章

  1. Android Studio连接华为mate8手机调试时不显示错误日志的解决办
  2. 说一下你眼中的Android的优点和不足之处(面试华为的人有被问过)!
  3. Android 拍照和图库功能(适配Android 6.0和7.0系统和华为机型问题
  4. Android优势和劣势分析(面试华为的人有被问过)
  5. [置顶] android 手机 华为c8650e 无法在mac下 utuntu 下调试 goo
  6. Android 如何识别判断小米 魅族 华为 系统 MIUI EMUI FLYME
  7. Android集成华为、小米、OPPO、VIVO、极光推送
  8. Android P 手机厂商(华为、Oppo,Vivo)屏幕适配实现记录
  9. 华为P30安卓内核编译android kernel build

随机推荐

  1. 《Android传感器高级编程》
  2. Android 高级UI组件
  3. Android找不到Manifest系统文件
  4. Android Spinner自动弹出列表,设置title
  5. J2me游戏如何快速移植到Android(安卓)(2)
  6. 浅谈android中图片处理之图形变换特效Mat
  7. Android集成友盟集成推送方案调研
  8. android/NDK开发assets资源中文名打包问
  9. android 学习(2)对话框
  10. android 圆角按钮和按钮颜色