Lines Matching defs:foreground

5132         // want as long as it's a 1dp foreground-colored rectangle.
12248 * ImageView with only the foreground image. The default implementation returns true; subclasses
17077 // Step 6, draw decorations (foreground, scrollbars)
17226 // Step 6, draw decorations (foreground, scrollbars)
18345 * Returns the drawable used as the foreground of this View. The
18346 * foreground drawable, if non-null, is always drawn on top of the view's content.
18348 * @return a Drawable or null if no foreground was set
18359 * @param foreground the Drawable to be drawn on top of the children
18363 public void setForeground(Drawable foreground) {
18365 if (foreground == null) {
18372 if (foreground == mForegroundInfo.mDrawable) {
18385 mForegroundInfo.mDrawable = foreground;
18387 if (foreground != null) {
18391 foreground.setLayoutDirection(getLayoutDirection());
18392 if (foreground.isStateful()) {
18393 foreground.setState(getDrawableState());
18397 foreground.setVisible(getWindowVisibility() == VISIBLE && isShown(), false);
18400 foreground.setCallback(this);
18412 * @return true if the foreground should draw inside the padding region or false
18421 * Describes how the foreground is positioned.
18423 * @return foreground gravity.
18435 * Describes how the foreground is positioned. Defaults to START and TOP.
18463 * Applies a tint to the foreground drawable. Does not modify the current tint
18490 * Return the tint applied to the foreground drawable, if specified.
18492 * @return the tint applied to the foreground drawable
18527 * Return the blending mode used to apply the tint to the foreground
18530 * @return the blending mode used to apply the tint to the foreground
18566 * Draw any foreground content for this view.
18568 * <p>Foreground content may consist of scroll bars, a {@link #setForeground foreground}
18569 * drawable or other view-specific decorations. The foreground is drawn on top of the
18578 final Drawable foreground = mForegroundInfo != null ? mForegroundInfo.mDrawable : null;
18579 if (foreground != null) {
18593 Gravity.apply(mForegroundInfo.mGravity, foreground.getIntrinsicWidth(),
18594 foreground.getIntrinsicHeight(), selfBounds, overlayBounds, ld);
18595 foreground.setBounds(overlayBounds);
18598 foreground.draw(canvas);
20164 // Similarly, we remove the foreground drawable's non-transparent parts.