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