Android: why Thread in getView() does not seem to work?

前端 未结 3 1096
太阳男子
太阳男子 2021-01-27 15:35

I would expect this (inside getView()) to work...

but nothing happens, the bitmaps are not loaded into the ImageView....

Thread th= new Thr         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-27 16:09

    First of all, Android application UI not updated or accessed from worker thread. So your Thread not going to change/access Image.

    Second, you don't need Thread for Image loading, as your ImageLoader library itself take care of it.

提交回复
热议问题