zeal4android
for Android developers
Showing posts with label
compare
.
Show all posts
Showing posts with label
compare
.
Show all posts
Wednesday, March 27, 2013
Android: How to compare Drawables
Answer:
drawable1.getConstantState().equals(drawable2.getConstantState());
It doesn't compare actual data (bytes of images) so it is fast and memory efficient.
Older Posts
Home
Subscribe to:
Posts (Atom)