Home

Awesome

Android custom swipe refresh listfragment

With 3 states: 1. waiting for ListAdapter will be set 2. ListAdapter is set but no records (items) for ListView 3. ListAdapter set with records (items) for ListView. Also when added records (items) to empty ListAdapter.

Base on code of example from google: http://developer.android.com/samples/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/SwipeRefreshListFragment.html

and stackoverflow answer: http://stackoverflow.com/a/26118733