When entering activity, a new stream is triggered with loading and the loading indicator is not visible until the adapter of the ListView empty. When updating everything is displayed correctly. Enable and disable animation occurs in the onPreExecute() and onPostExecute() methods, respectively.
@Override protected void onPreExecute() { super.onPreExecute(); ... SwipeRefreshLayout SRL = (SwipeRefreshLayout)findViewById(R.id.srl); SRL.setRefreshing(true); ... } @Override protected void onPostExecute(Void result) { super.onPostExecute(result); ... SwipeRefreshLayout SRL = (SwipeRefreshLayout)findViewById(R.id.srl); SRL.setRefreshing(false); ... }