当在Webview上单击链接时,如何在标题栏中显示微调框 [英] How can i show spinner in titlebar when link is clicked on webview

查看:72
本文介绍了当在Webview上单击链接时,如何在标题栏中显示微调框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是Android编程的新手.单击链接后,我想在Webview的标题栏上创建一个微调框.一个例子就是这张照片中显示的微型歌剧(位于左上方).非常感谢您的帮助.

Am new to android programming. I want to create a little spinner on my title bar in webview when a link is clicked. An example is the one in opera mini (on the top left) shown in this photo. Pls I'll really appreciate your help.

推荐答案

带有进度条或微调器的工具栏.然后,为您的Webview设置javascriptInterface并在从Webview调用工具栏的微调器时对其进行更新.

Implement toolbar with progress bar or spinner. Then setup javascriptInterface for your webview and update toolbar's spinner when it's called from webview.

这篇关于当在Webview上单击链接时,如何在标题栏中显示微调框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆