i want to perform two tasks i.e; scrolling and loding of data after scrolling task is completed using JSON http://www.souqalkhaleejia.com/webapis/featuredproducts.php?count=¤cy=INR&limit=2 above mentioned url is JSON url for example like the way products load in flipkart app.
AllProducts.xml
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include
android:id="@+id/featuredtoolbar"
layout="@layout/toolbar" />
<android.support.v4.widget.SwipeRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/swiperecycler" >
<android.support.v7.widget.RecyclerView
android:id="@+id/allfeaturedview"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>