IT. Expert System.

Android Reference

ShapeDrawable.ShaderFactory


android.graphics.drawable

Class ShapeDrawable.ShaderFactory

  • Enclosing class:
    ShapeDrawable


    public abstract static class ShapeDrawable.ShaderFactory
    extends Object
    Base class defines a factory object that is called each time the drawable is resized (has a new width or height). Its resize() method returns a corresponding shader, or null. Implement this class if you'd like your ShapeDrawable to use a special Shader, such as a LinearGradient.
    • Constructor Detail

      • ShapeDrawable.ShaderFactory

        public ShapeDrawable.ShaderFactory()
    • Method Detail

      • resize

        public abstract Shader resize(int width,
                    int height)
        Returns the Shader to be drawn when a Drawable is drawn. The dimensions of the Drawable are passed because they may be needed to adjust how the Shader is configured for drawing. This is called by ShapeDrawable.setShape().
        Parameters:
        width - the width of the Drawable being drawn
        height - the heigh of the Drawable being drawn
        Returns:
        the Shader to be drawn


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 656 / 158857719. Delta: 0.03219 с