<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/newTaskLayout"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@drawable/bg_grayscale">

    <uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout
            android:id="@+id/ptr_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="5dp"
            android:layout_marginRight="5dp">

        <ListView
                android:id="@android:id/list"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:divider="@android:color/transparent"
                android:dividerHeight="5dp"
                android:footerDividersEnabled="true"
                android:headerDividersEnabled="true">
        </ListView>

    </uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout>

</RelativeLayout>