ImageView onImageChangedListener Android

后端 未结 3 1586
一整个雨季
一整个雨季 2020-12-10 03:57

Is there an onImageChangedListener() on a ImageView?

I need the event when the image is changed from the ImageView.

3条回答
  •  臣服心动
    2020-12-10 04:44

    Check the imageview code in grepcode. You don't know when it is changed or redrawn. It is because after you setImageDrawable(), imageview will invalidate. At this time, the image IS NOT CHANGED correctly until ondraw is called.

    Anyway, why do you want to know the onimagechangedlistener?

提交回复
热议问题