WebViews are only rendered if they are attached (to the Window) and if they
are not 'View.GONE'.
This means you have to add a WebView to your Activity's hierarchy somehow
and either set it to View.INVISIBLE or set its alpha to 0 (make it
transparent).
There are 'optimizations' in the WebView im
On Tue, Sep 22, 2015 at 2:44 AM, Jags wrote:
> thanks, is it the only way ?
>
I don't know, probably not, but that's the first thing that came to mind.
> i can not put it as content, because, there is already a visible content
> (another list) i am replacing that content with webview when requ
thanks, is it the only way ? i can not put it as content, because, there is
already a visible content (another list) i am replacing that content with
webview when required.
i am surprised why content is not rendered when the webview instance is not
set as a content !
On Tuesday, September 22,
On Mon, Sep 21, 2015 at 2:07 AM, Jags wrote:
> i see blank page, the page is not rendered. but when the setcontentview is
> called before loadurl, (i.e it is visible), the page loads and renders with
> a white flash.
>
> to avoid this white flas, i want to load it while it is not set as layout
>
>
> Thanks for showing interest. My question is, how to achieve this ?
>
when i try below approach
webview objwv = new WebView(this);
objwv.loadUrl("index.html");
and on button click, say setContentLayout(objwv);
i see blank page, the page is not rendered. but when the setcontentview is
cal
On Sat, Sep 19, 2015 at 12:47 PM, Jags wrote:
> Hi, i need a functionality, that webview (programmatically created) loads
> an html file from assets and renders (when not visible, i.e is not the
> current layout.) , i want the page rendered already, and only make it
> visible / setCurrentLayout o
Hi, i need a functionality, that webview (programmatically created) loads
an html file from assets and renders (when not visible, i.e is not the
current layout.) , i want the page rendered already, and only make it
visible / setCurrentLayout on some event.
thanks
jags
--
You received this me
7 matches
Mail list logo