2016-07-05 29 views
0

我已閱讀其他問題,但沒有任何幫助。像this one這樣的酒吧,但沒有標籤,圖標和灰色,而不是黑色,仍然出現在我的手機上的phonegap測試儀上運行的phonegap應用程序的頂部,並聆聽我的IP。Phonegap上部灰色條仍顯示(安卓)

這裏是我的代碼:

  • 我的頁面根本就沒有應用的樣式iframe中。

  • config.xml中外WWW文件夾中包含此(抱歉,但由於某種原因,我沒能碼格式的塊):

    ... <preference name="fullscreen" value="true"/> ... <gap:config-file platform="android" parent="/manifest"> <supports-screens android:xlargeScreens="true" android:largeScreens="true" android:smallScreens="true" /> <application android:theme="@android:style/Theme.Light.NoTitleBar"> <activity android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"> </activity> </application> </gap:config-file> <gap:splash src="www/res/screen/android/screen-ldpi-portrait.png" gap:platform="android" gap:qualifier="port-ldpi"/> <gap:splash src="www/res/screen/android/screen-mdpi-portrait.png" gap:platform="android" gap:qualifier="port-mdpi"/> <gap:splash src="www/res/screen/android/screen-hdpi-portrait.png" gap:platform="android" gap:qualifier="port-hdpi"/> <gap:splash src="www/res/screen/android/screen-xhdpi-portrait.png" gap:platform="android" gap:qualifier="port-xhdpi"/> <gap:splash src="www/res/screen/blackberry/screen-225.png" gap:platform="blackberry"/> <gap:splash src="www/res/screen/ios/screen-iphone-portrait.png" gap:platform="ios" width="320" height="480"/> <gap:splash src="www/res/screen/ios/screen-iphone-portrait-2x.png" gap:platform="ios" width="640" height="960"/> <gap:splash src="www/res/screen/ios/screen-iphone-portrait-568h-2x.png" gap:platform="ios" width="640" height="1136"/> <gap:splash src="www/res/screen/ios/screen-ipad-portrait.png" gap:platform="ios" width="768" height="1024"/> <gap:splash src="www/res/screen/ios/screen-ipad-landscape.png" gap:platform="ios" width="1024" height="768"/> <gap:splash src="www/res/screen/windows-phone/screen-portrait.jpg" gap:platform="winphone"/>

  • 配置。 xml裏面 www文件夾也包含相同的屬性。

有沒有人有任何想法可能是什麼問題?我需要這個在沒有任何額外頭文件的情況下運行。我想如果你使用Xamarin簡單地用iframe來運行這個...

回答

0

,嘗試

RequestWindowFeature(WindowFeatures.NoTitle); 

,如果你使用的是Java,它應該像

this.requestWindowFeature(Window.FEATURE_NO_TITLE); 
您的OnCreate()方法中的

最近我處理了這個在C#和我採購從這裏How to hide the title bar for an Activity in XML with existing custom theme

+0

的Java解決方案這是PhoneGap的,對不起,忘了提。它在標籤雖然(科爾多瓦) 編輯:其實我沒有忘記提及,它在那裏正確的開始:) – Fane