Lines Matching defs:drawable
26 import android.graphics.drawable.Drawable;
220 * @param drawable The Drawable to be drawn on top of the children.
224 public void setForeground(Drawable drawable) {
225 if (mForeground != drawable) {
231 mForeground = drawable;
237 if (drawable != null) {
239 drawable.setCallback(this);
240 if (drawable.isStateful()) {
241 drawable.setState(getDrawableState());
245 if (drawable.getPadding(padding)) {
261 * Returns the drawable used as the foreground of this FrameLayout. The
262 * foreground drawable, if non-null, is always drawn on top of the children.
335 final Drawable drawable = getForeground();
336 if (drawable != null) {
337 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight());
338 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth());