Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. /**
  2. * If your view subclass is displaying its own Drawable objects, it should
  3. * override this function and return true for any Drawable it is
  4. * displaying. This allows animations for those drawables to be
  5. * scheduled.
  6. *
  7. * <p>Be sure to call through to the super class when overriding this
  8. * function.
  9. *
  10. * @param who The Drawable to verify. Return true if it is one you are
  11. * displaying, else return the result of calling through to the
  12. * super class.
  13. *
  14. * @return boolean If true than the Drawable is being displayed in the
  15. * view; else false and it is not allowed to animate.
  16. *
  17. * @see #unscheduleDrawable(android.graphics.drawable.Drawable)
  18. * @see #drawableStateChanged()
  19. */
  20. @CallSuper
  21. protected boolean verifyDrawable(Drawable who) {
  22. return who == mBackground || (mScrollCache != null && mScrollCache.scrollBar == who)
  23. || (mForegroundInfo != null && mForegroundInfo.mDrawable == who);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement