Webview with Pull/Swipe to Refresh - Android Tutorial

Webview with Pull/Swipe to Refresh - Android Tutorial

Ardhitya Wiedha Irawan

7 лет назад

11,066 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

app development
app development - 18.01.2019 15:24

nice work - any issues i can help

Ответить
Bhupathi turaga
Bhupathi turaga - 03.08.2018 09:46

by this i cant scroll down

Ответить
Amaresh S M
Amaresh S M - 21.07.2018 19:38

sir when i switch between landscape and portrait mode it goes back to home page sir everytime.. how to make it stable and stay in the current page

Ответить
Smart and Funny
Smart and Funny - 22.03.2018 23:10

if you're getting error then you should do this to set onRefreshListener :
swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
webView.reload();
}
});

and then set your webview listener too:

webView.setWebViewClient(new WebViewClient(){

@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
swipeRefreshLayout.setRefreshing(true);
}

@Override
public void onPageFinished(WebView view, String url) {
super.onPageFinished(view, url);
swipeRefreshLayout.setRefreshing(false);
}
});

Ответить
Gowtham Mandarada
Gowtham Mandarada - 18.02.2018 09:57

short video but more informative ... keep it up...good job

Ответить
Ryan Sunarto
Ryan Sunarto - 28.01.2018 10:46

work dan berhasil...
mantap...!!! rekomen deh...

Ответить
Stalls Shopping
Stalls Shopping - 23.04.2017 13:35

hello can you help make my webview load faster

Ответить
Ajay Kumar
Ajay Kumar - 26.02.2017 14:54

sir please help

Ответить
ayeebriko channel
ayeebriko channel - 21.10.2016 13:51

hormat saya kepada master Coki

Ответить