Adding a RecyclerView with grid layout in android
This post describes a simple RecyclerView added as a Fragment in MainActivity. 1. Create main.xml. In main.xml add a ToolBar in AppBarLayout, and then add a LinearLayout containing a FrameLayout. 2. In MainActivity.java display ToolBar, enable back button on toolbar, and create fragment transaction to display fragment. 3. Create recycle_view_frag.xml containing a RecyclerView. This will … Read more