android筆記之在WebView中顯示ProgressBar的兩種方法

第一種方法是用系統的資源,這種方法只能將進度情況顯示到標題欄中。英文是本文作者的一段嘮叨,很簡單,我就不用再翻譯了吧。

When using the webview, something that drives me crazy, specially if you are in a place with a very slow internet connection, is not knowing what is happening with the webpage, is it loading? Is it stuck? …. AAAhhhh Nothing is happening. Ok don’t desperate, I am going to show you how to add a progress bar to your Webview layout in you app. 
After you know what to do is easy (As always).
     

 

 

 

下面是第二種方法:英文是本文作者的一段嘮叨,也很簡單,我就不用再翻譯了吧。和上面的方法不同的是,這個是進度沒有顯示在標題欄而是顯示在頁面的上面。

I’ve seen a multitude of posts on how to embed the Android WebView object and how to use the built-in feature request PROGRESS, but I’ve yet to come across a demonstration on just how simple it is to integrate a ProgressDialog object. I specifically needed this for one of my projects because I did not want the title bar to render in my application. If the title is not rendered, then the Window Feature Request progress bar and indeterminant functions will not render at all.

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章