Android - Images from Assets folder in a GridView

后端 未结 2 910
慢半拍i
慢半拍i 2020-12-15 11:10

I have been working on creating a Grid View of images, with images being present in the Assets folder. Opening a File from assets folder in android link helped me with using

2条回答
  •  太阳男子
    2020-12-15 11:28

    No need to read all the items every time. Read only the item at the position given in getView method call. And display only that item that time.

    BufferedInputStream buf = new BufferedInputStream(am.open(list[position]));
    

提交回复
热议问题