drawable == drawable?

前端 未结 5 435
盖世英雄少女心
盖世英雄少女心 2021-01-03 01:56

This is my problem...:

In my activity I have an ImageView and a Button. I want the Button to perform an action ONLY when the ImageVie

5条回答
  •  再見小時候
    2021-01-03 02:27

    I know it's fairly late to post this, but it'll be useful for anyone googling.

    I used .getConstantState() to compare my two drawables and it worked like a charm :)

提交回复
热议问题