android webview加载网页后,点击链接再弹出个webview,那还要创建个新的activity吗?那XML怎么弄?
PHP中文网
PHP中文网 2017-04-17 15:41:21
0
1
361
PHP中文网
PHP中文网

认证0级讲师

reply all(1)
大家讲道理

An Activity can use setContentView(View view) to display different interfaces and pass in different views. This method is allowed to be called multiple times. But it is not recommended to use it this way, especially if you are using webview. Web page tags will give you a headache. Webview takes up a lot of memory. If memory recycling is not controlled well, this page will be a huge pit in the future. Let webview handle web page jumps internally. As for the AJAX repeated loading problem you mentioned, I think improving your loading mechanism would be a better solution. The multi-webview method does not guarantee that your web page will not be reloaded. When the memory is occupied to a certain extent, your webviews that are not displayed in the foreground may be recycled, and re-displaying them in the foreground will inevitably be accompanied by a reload process.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template