Nguyễn Hồng Yến
New member
How do I know if my Android is drawable?
Answer
You are comparing a Drawable with an integer ( R. drawable. ic_favorite_border is an integer). On the other hand, to compare Drawables, you must use the object returned by the getConstantState() method.
Answer
You are comparing a Drawable with an integer ( R. drawable. ic_favorite_border is an integer). On the other hand, to compare Drawables, you must use the object returned by the getConstantState() method.