how to disable webview for a while in android -



assume have 10 web page. first time im loading 1st page , next page loaded when user swipes screen.so incrementing web page count when user swipes screen. problem while loading page if user swipes screen many times web view loades page incremented unnecessary swipe done user while loading.. want disable user touch webview screen while page loading . how can that?

what description if user swipe page 1 page 2 , page loading in mean time if user swipe 3 times load page 2,3,4,5 , want disable swipe @ unless page 2 has been loaded. if correct below solution

in onfling() method check boolean whether page loaded or not if not return without further processing , suppose code downloading code not run. boolean must set false before call downloading method , set true downloading finished.

apart suggest load particular page on user scrolls rather disabling swipe have nothing onfling check whether downloader thread alive last page or not if yes interrupt , start again current page think approach more user friendly


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -