0

In my WebView app I want to have a custom onReceivedError screen. Web page not avalible

Instead I want to launch a custom xml defined view with the possibility to do some actions. (Much easier from the same class as the webview).

What is the most simple and reliable replacement for this screen? Dialog or some sort of setContentView? It would look much better if the standard "web page not found" is never shown.

4

1 に答える 1

0

webview を保持する xml を作成します。

そして onReceivedError メソッドで、ユーザーに警告するダイアログを表示します。[OK] ボタンをクリックすると、必要に応じて Web ビューを非表示にする Web ビューをリロードできます。

于 2012-06-20T10:15:53.917 に答える