Added option to layout change

 Added option to change the layout to listview and gridview within the RecyclerView. I've tested the code and everything works as you expected i.e. you can toggle between list and grid view.