I have a SwipeRefreshLayout and a ListView in it. So when I scroll down and at the very beginning the update icon appears, that is, it is updated normally ... I do this like this:
swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh_layout); @Override public void onRefresh() { swipeRefreshLayout.postDelayed(new Runnable() { @Override public void run() { swipeRefreshLayout.setRefreshing(false); ToastUtils.ToastLong(ctx, "список заказов обновлен"); } }, 500); } So I still need to update when you scroll down and at the end of the list, too, so that the icon appears and is updated, and when the activity is created, that is, onCreate, too, the update was how to implement all this, could not be found in bourgeois, because it is not easy to formulate it in English. ..