The grid view of my application has 3 rows and 3 columns. I want this to fill the screen ,irrespective of the screen size of the device.
I tried getting window size
Here I only changed width and height as match parent and wrap content.
And in the Mainclass add this -->
GridLayoutManager gridLayoutManager=new GridLayoutManager(this,2); recyclerView.setLayoutManager(gridLayoutManager);