java.lang.outofmemoryerror exception while trying to display images in gridview

前端 未结 3 362
暖寄归人
暖寄归人 2021-01-27 14:03

I am trying to display 6 images, which i have kept in res/drawable folder in the gridview.

but i get the following error

10-29 09:44:20.025: E/AndroidRun         


        
3条回答
  •  孤独总比滥情好
    2021-01-27 14:19

    Try reducing the size of your images according to the individual grid sizes. Check the link. How to resize Image in Android?

提交回复
热议问题