Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swipeLayout = (SwipeRefreshLayout) v.findViewById(R.id.swipe_container);
- swipeLayout.setOnRefreshListener(this);
- swipeLayout.animate();
- swipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright,
- android.R.color.holo_green_light,
- android.R.color.holo_orange_light,
- android.R.color.holo_red_light);
- public void onRefresh() {
- new Handler().postDelayed(new Runnable() {
- @Override
- public void run() {
- swipeLayout.setRefreshing(false);
- }
- }, 5000);
- }
- boolean canChildScrollUp()
- {
- return resultado.getFirstVisiblePosition()!=0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement