0
我刷卡刷新刷新我的webview内容,我有1个问题 有时我不需要刷新为exaple当我的位置是/测试或/ norefresh,以及如何我可以排除滑动刷新我的条件(当位置有一些网址)?滑动刷新Android的条件
//swipe refresh
swipeLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_container);
swipeLayout.setColorSchemeResources(R.color.colorPrimary);
swipeLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
mywebview.reload();
}
});
只需添加'onRefresh'内的'if'声明? –