I am Using Web view in my application every thing is working fine for me, but i am having small problem. When Url contains Disclaimers i should not allow web-view should be clickable. But in all other cases web-view should be clickable.
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if(url.contains("Disclaimers")){
view.setClickable(false);
//Here clickable should be fasle.
return true;
}else{
// In this clickable should be true.
view.setClickable(true);
if(!url.contains("/Home.mvc/Trade")){
showProgressLayout();
}
if(url.contains("/Home.mvc/Trade")){
openTradeScreen(url);
}else{
view.loadUrl(url);
}
return true;
}
}