南黎2024
南黎2024
  • 发布:2024-05-17 10:14
  • 更新:2024-05-23 11:58
  • 阅读:191

安卓底部安全区域

分类:uni-app

取消了安全区域安卓底部仍然有白色区域 2021年就有社区的帖子了
所以至今为止官方优化了吗?咱就是说uniapp已经是版本弃子了吗···· 社区大大们有什么处理方法吗?
希望动态修改适配暗色模式(主要是没有动态修改窗口背景颜色的方法)

    /* 5+App特有相关 */  
    "app-plus" : {  
        "ios" : {  
            "fullScreen" : true  
        },  
        "safearea" : {  
            "bottom" : {  
                "offset" : "none"  
            }  
        },

系统信息如下:
{
"SDKVersion": "",
"appLanguage": "zh-Hans",
"appVersion": "1.1.1",
"appVersionCode": 128,
"appWgtVersion": "1.1.1",
"brand": "realme",
"browserName": "chrome",
"deviceBrand": "realme",
"deviceModel": "RMX2121",
"deviceOrientation": "portrait",
"devicePixelRatio": 3,
"deviceType": "phone",
"errMsg": "getSystemInfo:ok",
"language": "zh-CN",
"oaid": "",
"osAndroidAPILevel": 31,
"osLanguage": "zh-CN",
"osName": "android",
"osTheme": "light",
"osVersion": "12",
"pixelRatio": 3,
"platform": "android",
"safeArea": {
"left": 0,
"right": 360,
"top": 36,
"bottom": 784,
"width": 360,
"height": 748
},
"safeAreaInsets": {
"top": 36,
"right": 0,
"bottom": 0,
"left": 0
},
"screenHeight": 784,
"screenWidth": 360,
"statusBarHeight": 36,
"system": "Android 12",
"theme": "light",
"uniCompileVersion": "3.99",
"uniPlatform": "app",
"uniRuntimeVersion": "3.99",
"version": "1.9.9.81993",
"windowBottom": 0,
"windowHeight": 784,
"windowTop": 0,
"windowWidth": 360
}

2024-05-17 10:14 负责人:无 分享
已邀请:
南黎2024

南黎2024 (作者)

或者有没有什么办法可以单独在安全区域搞一个元素覆盖掉

都广野

都广野

蹲一个解决办法

i锦鲤

i锦鲤 - -接单-Tel:18560000860

安卓底部安全区,各家厂商都不一样,只能自己去做适配了

  • 南黎2024 (作者)

    已经解决了~~

    2024-05-23 14:49

  • 南黎2024 (作者)

    不用一个个适配

    2024-05-23 14:50

  • 旧时光

    回复 南黎2024: 咋解决的,求贴一下代码,谢谢

    2024-06-28 15:56

要回复问题请先登录注册