Lines Matching defs:drawable
23 import android.graphics.drawable.Drawable;
63 * Adds a {@link Drawable} to the overlay. The bounds of the drawable should be relative to
64 * the host view. Any drawable added to the overlay should be removed when it is no longer
69 * @param drawable The {@link Drawable} to be added to the overlay. This drawable will be
74 public void add(@NonNull Drawable drawable) {
75 mOverlayViewGroup.add(drawable);
83 * @param drawable The {@link Drawable} to be removed from the overlay.
86 public void remove(@NonNull Drawable drawable) {
87 mOverlayViewGroup.remove(drawable);
106 * ViewGroupOverlay. These drawable and view objects are
146 public void add(@NonNull Drawable drawable) {
147 if (drawable == null) {
148 throw new IllegalArgumentException("drawable must be non-null");
153 if (!mDrawables.contains(drawable)) {
154 // Make each drawable unique in the overlay; can't add it more than once
155 mDrawables.add(drawable);
156 invalidate(drawable.getBounds());
157 drawable.setCallback(this);
161 public void remove(@NonNull Drawable drawable) {
162 if (drawable == null) {
163 throw new IllegalArgumentException("drawable must be non-null");
166 mDrawables.remove(drawable);
167 invalidate(drawable.getBounds());
168 drawable.setCallback(null);
219 for (Drawable drawable : mDrawables) {
220 drawable.setCallback(null);
235 public void invalidateDrawable(@NonNull Drawable drawable) {
236 invalidate(drawable.getBounds());