HTML apps not responsive?

78 views
Skip to first unread message

JustAnotherDude

unread,
Feb 1, 2017, 6:03:49 PM2/1/17
to DroidScript
i want to make a html "template" with my old Plugin Manager "system" (Uninstall and enable/disable without installing)

but i use a Responsive Design (like on a normal site like google) and in the normal browser it looks good but if i run this as app 
it looks very unresponsive :/

is here any way to force DroidScript to run a webview on the real device width?

i have attached a zip with the 'app' ^^

oh and i use W3CSS and W3DATA as Responsive framework and to transform droidscript data to html data :) (i dont like the framework by dave because it is too big)



note: i removed the Font Awesome files and replaced the chars that cannot be shown (because font awesome cant load) with normal chars (M for menu and X for close) because i dont have so fast internet connection :(
PluginManager.rar

JustAnotherDude

unread,
Feb 1, 2017, 6:06:21 PM2/1/17
to DroidScript
sorry i forged that some mobile users cant open rar files without RaR :3
PluginManager.zip

Steve Garman

unread,
Feb 1, 2017, 6:53:06 PM2/1/17
to DroidScript
Many mobile users cannot open a zip either. Please post SPK if you need to post a whole project.

On my phone the page is responsive in that the buttons reposition themselves immediately when I rotate the phone.
What problems are you seeing?

As far a using the whole device size, I was surprised to find that putting
app.SetScreenMode("Game");
in the OnStart function had no effect.

I am not sure whether that is a general limitation of HTML apps and I have no other suggestion for this.

Steve Garman

unread,
Feb 1, 2017, 7:01:52 PM2/1/17
to DroidScript
app.SetScreenMode("Game");
works in a simple HTML app if you add it in the OnStart function of a newly created app, so it is not a general limitation.

I assume the responsive CSS is overriding the attempt to resize the device.

JustAnotherDude

unread,
Feb 2, 2017, 9:18:50 AM2/2/17
to DroidScript
ok i have tryed to reinstall DroidScript and now it works 😐
but for security rasins i add the game mode (thanks for your help ^^)

anyway i hope i can do ut what u want because i dont know if there is anything not as useual (or so ^^)

Reply all
Reply to author
Forward
0 new messages