How do I know if my Android is drawable?

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.
 

Tìm kiếm

Back
Top