Advertisement
Sebuahhobi98

swipeRefresh

Oct 31st, 2021
1,008
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. SwipeRefreshLayout swipeRefreshLayout = (SwipeRefreshLayout)findViewById(R.id.refreshLayout);
  2.         swipeRefreshLayout.setOnRefreshListener(
  3.                 new SwipeRefreshLayout.OnRefreshListener() {
  4.                     @Override
  5.                     public void onRefresh() {
  6.                         onStartup();
  7.                         swipeRefreshLayout.setRefreshing(false);
  8.                     }
  9.                 }
  10.         );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement