Home | History | Annotate | Download | only in view

Lines Matching refs:BACKGROUND

473  * in the tree. If you set a background drawable for a View, then the View will
923 * this flag set and a background. Use with DRAW_MASK when calling setFlags.
1131 * background, if any.
1822 * Indicates whether the background is opaque.
3539 * of the background drawable. It is cleared on temporary detach, and reset
3650 ViewOutlineProvider mOutlineProvider = ViewOutlineProvider.BACKGROUND;
3737 * Solid color to use as a background when creating the drawing cache. Enables
4098 * (in particular its background) as well as the Button class's attributes.
4155 Drawable background = null;
4202 background = a.getDrawable(attr);
4599 if (background != null) {
4600 setBackground(background);
4603 // setBackground above will record that padding is currently provided by the background.
4622 // Padding from the background drawable is stored at this point in mUserPaddingLeftInitial
4636 // Padding from the background drawable is stored at this point in mUserPaddingLeftInitial
5153 // Re-apply user/background padding so that scrollbar(s) get added
6019 final Drawable background = getBackground();
6020 if (background != null) {
6021 background.getHotspotBounds(outRect);
12330 * directly. An example of overlapping rendering is a TextView with a background image, such as
12331 * a Button. An example of non-overlapping rendering is a TextView with no background, or an
13000 setOutlineProvider(ViewOutlineProvider.BACKGROUND);
13018 * The default ViewOutlineProvider, {@link ViewOutlineProvider#BACKGROUND}, queries the Outline
13019 * from the View's background drawable, via {@link Drawable#getOutline(Outline)}. Changing the
13062 * invalidated already. For example, when we are drawing the background of a View,
13064 * need to invalidate the view because we're already drawing the background as part
13845 // - Has a background
13846 // - Background is opaque
14515 * if a view has a background drawable and you want to draw the scrollbars
14993 * @param canvas the canvas on which the background will be drawn
16268 * Setting a solid background color for the drawing cache's bitmaps will improve
16272 * @param color The background color to use for the drawing cache's bitmap
16288 * @return The background color to used for the drawing cache's bitmap
17164 * 1. Draw the background
17172 // Step 1, draw the background, if needed
17349 * Draws the background onto the specified canvas.
17351 * @param canvas Canvas on which to draw the background
17354 final Drawable background = mBackground;
17355 if (background == null) {
17364 mBackgroundRenderNode = getDrawableRenderNode(background, mBackgroundRenderNode);
17377 background.draw(canvas);
17380 background.draw(canvas);
17386 * Sets the correct background bounds and rebuilds the outline, if needed.
17463 * Override this if your view is known to always be drawn on top of a solid color background,
17471 * @return The known solid color background for this view, or 0 if the color may vary
18199 * Sets the background color for this view.
18200 * @param color the color of the background
18214 * Set the background to a given resource. The resource should refer to
18215 * a Drawable object or 0 to remove the background.
18236 * Set the background to a given Drawable, or remove the background. If the
18237 * background has padding, this View's padding is set to the background's
18238 * padding. However, when a background is removed, this View's padding isn't
18242 * @param background The Drawable to use as the background, or null to remove the
18243 * background
18245 public void setBackground(Drawable background) {
18247 setBackgroundDrawable(background);
18254 public void setBackgroundDrawable(Drawable background) {
18257 if (background == mBackground) {
18266 * Regardless of whether we're setting a new background or not, we want
18277 if (background != null) {
18284 background.setLayoutDirection(getLayoutDirection());
18285 if (background.getPadding(padding)) {
18287 switch (background.getLayoutDirection()) {
18306 || mBackground.getMinimumHeight() != background.getMinimumHeight()
18307 || mBackground.getMinimumWidth() != background.getMinimumWidth()) {
18312 // background drawable state change calls. In particular, the setVisible call below
18316 mBackground = background;
18317 if (background.isStateful()) {
18318 background.setState(getDrawableState());
18321 background.setVisible(getWindowVisibility() == VISIBLE && isShown(), false);
18327 background.setCallback(this);
18334 /* Remove the background */
18342 * When the background is set, we try to apply its padding to this
18343 * View. When the background is removed, we don't touch this View's
18348 // The old background's minimum size could have affected this
18365 * Gets the background drawable
18367 * @return The drawable used as the background for this view, if any.
18378 * Applies a tint to the background drawable. Does not modify the current tint
18402 * Return the tint applied to the background drawable, if specified.
18404 * @return the tint applied to the background drawable
18415 * {@link #setBackgroundTintList(ColorStateList)}} to the background
18435 * Return the blending mode used to apply the tint to the background
18438 * @return the blending mode used to apply the tint to the background
18631 * {@link #setForegroundTintList(ColorStateList)}} to the background
19903 * The base class implementation of measure defaults to the background size,
20067 * and the background's minimum height
20083 * and the background's minimum width
20291 // The SKIP_DRAW flag IS set and the background drawable exists, we remove
20292 // the background drawable's non-transparent parts from this transparent region.