質問

I have an issue in which when I pop open a childbrowser: if a user is using their 3G or has a slow connection, there can be a long waiting period before any content is loaded (just a blank white screen).

Is there a way to minimize or hide the child dialog until it has loaded its content and then display it when it has loaded (would use a loading overlay up to this point)?

Any help would be much appreciated.

役に立ちましたか?

解決

Hmmm...that's an interesting one. First off you'd have to comment out the dialog.show() command in the showWebPage() method of the ChildBrowser. Then in the inner class ChildBrowserClient you'd need to override the method onPageFinished(). Once you get the page finished event then you could call dialog.show().

I haven't tried it yet but that is probably enough to get you going.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top