android - Worklight app showing the text of the views on initialization -


i tried many times there no use create worklight application main view , list items opens other views (included in same html file).

when test application on mobile device (samsung galaxy s4) o on browser shows complete content of html file second before widgets render correctly.

    <div data-dojo-type="dojox.mobile.roundrectlist"  class="indexliststyle" >     <div data-dojo-type="dojox.mobile.listitem" data-dojo-props="icon:'images/about.png',moveto:'aboutview',variableheight:true,transition:'fade'" class="indexliststyle">about </div>     <div data-dojo-type="dojox.mobile.listitem" data-dojo-props="icon:'images/register.png',moveto:'agendaview',variableheight:true,transition:'slide'" class="indexliststyle">agenda</div>     <div data-dojo-type="dojox.mobile.listitem" data-dojo-props="icon:'images/register.png',moveto:'registrationview',variableheight:true,transition:'cover'" class="indexliststyle">register</div>     <div data-dojo-type="dojox.mobile.listitem" data-dojo-props="icon:'images/register.png',moveto:'profileview',variableheight:true,transition:'dissolve'" class="indexliststyle">gbm profile</div> </div> </div>  <div id="aboutview" data-dojo-type="dojox.mobile.view">  </div>     <div id="agendaview" data-dojo-type="dojox.mobile.view">  </div> <div id="registrationview" data-dojo-type="dojox.mobile.view">  </div> <div id="profileview" data-dojo-type="dojox.mobile.view">  </div> 

i load contents of view divs external html files in function wlcommoninit() this

$("#aboutview").load("about.html"); 

can please?

add style="visibility:hidden" html body tag.

the dojox/mobile framework should set visible once parser has run.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -