如何根据Codenameone中的不同形式更改状态栏的颜色? [英] how can color of status bar be changed as per different forms in codenameone?

查看:22
本文介绍了如何根据Codenameone中的不同形式更改状态栏的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过beow链接访问了,并且效果很好.

我已在提示构建中添加了android.style,如所附图像所示,但状态栏中没有更改,我是否正确使用了它,请对其进行验证.

解决方案

目前,透明状态栏仅在iOS上受支持.我们在其他地方不支持.

使用以下命令可能会起作用: Android完全透明的状态栏?

但是我们尚未对其进行测试,并且尝试该操作的一位用户并未报告成功. android.style 构建提示将允许您注入 theme.xml ,但是我不确定 android:fitsSystemWindows 的工作方式.

I have gone via the beow link and it works well . change color

  1. But there is static status color and I want to change of status bar as per the different form.
  2. I want to use transparent background image as per the attached image , how can it done?

[EDIT] I have added the android.style in hint build as shown in attached image but there is no changed in status bar, is I using it correctly or not please verify it.

解决方案

Right now transparent status bar is only supported on iOS. We don't support that elsewhere.

It might work using this: Android Completely transparent Status Bar?

But we haven't tested it and the one user who tried it didn't report success. The android.style build hint would allow you to inject to the theme.xml but I'm not sure how android:fitsSystemWindows can work.

这篇关于如何根据Codenameone中的不同形式更改状态栏的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆