Home | History | Annotate | Download | only in widget

Lines Matching refs:Drawable

24 import android.graphics.drawable.Drawable;
53 private Drawable mForeground;
91 final Drawable d = a.getDrawable(com.android.internal.R.styleable.FrameLayout_foreground);
150 protected boolean verifyDrawable(Drawable who) {
176 * Supply a Drawable that is to be rendered on top of all of the child
177 * views in the frame layout. Any padding in the Drawable will be taken
181 * @param drawable The Drawable to be drawn on top of the children.
185 public void setForeground(Drawable drawable) {
186 if (mForeground != drawable) {
192 mForeground = drawable;
198 if (drawable != null) {
200 drawable.setCallback(this);
201 if (drawable.isStateful()) {
202 drawable.setState(getDrawableState());
206 if (drawable.getPadding(padding)) {
222 * Returns the drawable used as the foreground of this FrameLayout. The
223 * foreground drawable, if non-null, is always drawn on top of the children.
225 * @return A Drawable or null if no foreground was set.
227 public Drawable getForeground() {
260 final Drawable drawable = getForeground();
261 if (drawable != null) {
262 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight());
263 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth());
355 final Drawable foreground = mForeground;