Java android.graphics.drawable ShapeDrawable fields, constructors, methods, implement or subclass

Example usage for Java android.graphics.drawable ShapeDrawable fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.graphics.drawable ShapeDrawable.

The text is from its open source code.

Constructor

ShapeDrawable(Shape s)
Creates a ShapeDrawable with a specified Shape.
ShapeDrawable()
ShapeDrawable constructor.

Method

voiddraw(Canvas canvas)
PaintgetPaint()
Returns the Paint used to draw the shape.
voidsetAlpha(int alpha)
Set the alpha level for this drawable [0..255].
voidsetBounds(int left, int top, int right, int bottom)
Specify a bounding rectangle for the Drawable.
voidsetDither(boolean dither)
voidsetIntrinsicHeight(int height)
Sets the intrinsic (default) height for this shape.
voidsetIntrinsicWidth(int width)
Sets the intrinsic (default) width for this shape.
voidsetPadding(int left, int top, int right, int bottom)
Sets padding for the shape.
voidsetShaderFactory(ShaderFactory fact)
Sets a ShaderFactory to which requests for a android.graphics.Shader object will be made.
voidsetShape(Shape s)
Sets the Shape of this ShapeDrawable.