Android – unable to hide title bar titanium alloy

I encountered a problem in titanium appcelerator using alloy MVC. This problem includes the following (see picture)

I can't delete the black bar that found the app name and logo. I run the app on my device (Google nexus, no simulator)

I've tried the following to delete this content:

XML:

<Alloy>
    <Window>
    </Window>
</Alloy>

TSS:

"Window":
{
    navBarHidden:true,
    fullscreen:true,
    backgroundColor:"Orange",
    orientationModes:[Ti.UI.PORTRAIT],
}

TiApp.XML:

<statusbar-style>default</statusbar-style>
<statusbar-hidden>true</statusbar-hidden>
<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden>

But none of these options can hide the black bar. In the IOS simulator, it only deletes the navigation bar by setting the full screen property to true

Are there any other options to solve this problem? Thank you in advance!

resolvent:

Could it be that actionbar is showing? Try to hide it

<?xml version="1.0" encoding="utf-8"?> <resources>
    <style name="Theme.NoActionBar" parent="@style/Theme.Titanium">
        <!-- Depending on the parent theme, this may be called android:windowActionBar instead of windowActionBar -->
        <item name="windowActionBar">false</item>
    </style> </resources>

derive from: http://docs.appcelerator.com/titanium/3.0/# !/ guide/Android_ Action_ Bar

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>