In this post I will describe how to use SwipeRefreshLayout which is part from support library too.
Using this new layout is pretty easy and this is a standard way to implement common Pull to refresh pattern.
We must know: SwipeRefreshLayout is a ViewGroup layout which can hold only one scrollable view as children.
Example layout file with Swipe Refresh

We can set OnRefreshListener to listen when user wants to refresh content

If we want we can use it to display refreshing content before user iteract. For this we can use setRefreshing method