I did little things. I have to change gridview to recyclerview gridlayoutmanager.
I changed gridview into recyclerview.