<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/srl_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/lv_my_list">
</ListView>
</android.support.v4.widget.SwipeRefreshLayout>
mSwipeRefreshLayout.setRefreshing(true);