1

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?enter image description here

[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.enter image description here

tizbn
  • 1,907
  • 11
  • 16

1 Answers1

0

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.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • 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. Please check the image on above edited question. – tizbn Sep 11 '17 at 05:20
  • How is your resulting manifest different from the one generated by the native sample? If you use include source can you customize the manifest/theme to create that effect? If so what do you need to change and what build hints would you need from us? – Shai Almog Sep 11 '17 at 05:53
  • Use include source and look within the resulting build source https://www.codenameone.com/how-do-i---use-the-include-sources-feature-to-debug-the-native-code-on-iosandroid-etc.html – Shai Almog Sep 12 '17 at 06:08
  • I have added the below style on styles.xml but there is no changeon status bar is there any things missing or any other problem? – tizbn Sep 12 '17 at 10:46
  • In the native code? Did you add the android:fitsSystemWindows attribute to the main layout? – Shai Almog Sep 13 '17 at 05:36
  • when I add android:fitsSystemWindows="true" then it goes to add at styles.xml as shown below android:fitsSystemWindows="true" and there is no change on status bar – tizbn Sep 13 '17 at 05:41
  • That attribute shouldn't be in the style, it should be in the native layout which in our case should be a relative layout if I remember correctly – Shai Almog Sep 14 '17 at 04:21
  • in which attribute should i add it? – tizbn Sep 14 '17 at 05:25
  • In the native sources in the relative layout tag itself – Shai Almog Sep 15 '17 at 04:17