I have a Recyclerview in my activity. when I pull down it will load new items to recycle view. Now I need to implement pull to refresh the concept to my recyclerview. I have
Add following line when you set your recyclerview
recyclerView.setLayoutManager(new LinearLayoutManager(context,LinearLayoutManager.VERTICAL,true));
in Recyclerview you also set your list order. you just set your adapter to reverse true or false.
RecyclerView.LayoutManager layoutManager=newLinearLayoutManager(this,LinearLayoutManager.VERTICAL,true);
recyclerView.setLayoutManager(layoutManager);
after set layout manager to your Recyclerview Adapter. And if you want to perform delete some item view on your recyclerview also you need to add
layoutManager.setStackFromEnd(true);
use list.add(0,items);
it will add new item to top of recyclerview