Software Archive
Read-only legacy content

Status bar vs full screen!

Thomas_V_1
初學者
1,063 檢視

Hi, I am testing on Kit Kat 4.4.2 and my app is true full screen but I want to show the status bar all the time(as in the emulator). Is there a setting or do I have to get the status bar height, add a listener and change my apps top, margin etc with java script dynamically?

How is it with ios, windows etc?

 

0 積分
9 回應
PaulF_IntelCorp
1,063 檢視

See the status bar plugin, it is one of the core plugins. Also, see the featured "full screen" plugin for Android, this might be of value, depending on what you are trying to do. Or, just uncheck the "fullscreen" setting in the build settings.

Thomas_V_1
初學者
1,063 檢視

Thanks Paul. You are helpful as usual. 

Thomas_V_1
初學者
1,063 檢視

Where did the "plugins and permissions" folder go? I only have "build settings" and "launch icons and splash screens" under hybrid apps. I have xdk version  2548. 

 

Thomas_V_1
初學者
1,063 檢視

I think this is a Linux problem. I use XUbuntu. I use cli 5.1.1. XDK 2548, I did not have 2496. 

When I upgraded to 2548 xdk stopped crashing. Good work. XDK Team. It was enoying. 

But the new Managing system do not show. 

https://software.intel.com/en-us/forums/intel-xdk/topic/594986

https://software.intel.com/en-us/xdk/docs/add-manage-project-plugins

Thomas_V_1
初學者
1,063 檢視

hmm I saw the Upgrade button. Now I have the Manager. 

Thomas_V_1
初學者
1,063 檢視

Fixed it. I needed to add show() and the window. 

added the statusbar plugin and 

in html I added:     <script type="text/javascript" src="statusbar.js"></script>

in onDeviceReady() i added:

window.StatusBar.show();

window.StatusBar.overlaysWebView(false);

 

Thanks for the help Paul. 

PaulF_IntelCorp
1,063 檢視

Thomas, glad to hear you got things working. You should not have to include this line:

<script type="text/javascript" src="statusbar.js"></script>

to your index.html, that should be taken care of automatically by the cordova.js inclusion.

In the future, if you do not see the plugin manager section of the Projects tab, check to be sure your project type (in the info section of the Projects tab) is HTML5+Cordova -- the plugin manager is only present for a Cordova app.

Thomas_V_1
初學者
1,063 檢視

sorry wrong thread.

Thomas_V_1
初學者
1,063 檢視

sorry wrong thread. 

回覆