In gridview adapter, getView(position == 0) was invoked too many times to measure layout when setImageBitmap() in a loader

后端 未结 4 1468
暖寄归人
暖寄归人 2021-02-05 05:26

I have a GridView for showing some icons.

BEFORE I had read this Displaying Bitmaps Efficiently from Android developer site, I was decoding bitmap from loca

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 05:52

    try adjust your xml layout on anyone place that references the height, because the android will do a measure to draw eachtime and will redraw the cell up again. Try use on listview match_parent and on cell at row an exactly height. sorry my bad english.

提交回复
热议问题