auto import from //branches/cupcake/...@125939
This commit is contained in:
@@ -35,6 +35,24 @@ import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a
|
||||
* BitmapDrawable from a file path, an input stream, through XML inflation, or from
|
||||
* a {@link android.graphics.Bitmap} object.
|
||||
* <p>It can be defined in an XML file with the <code><bitmap></code> element.</p>
|
||||
* <p>
|
||||
* Also see the {@link android.graphics.Bitmap} class, which handles the management and
|
||||
* transformation of raw bitmap graphics, and should be used when drawing to a
|
||||
* {@link android.graphics.Canvas}.
|
||||
* </p>
|
||||
*
|
||||
* @attr ref android.R.styleable#BitmapDrawable_src
|
||||
* @attr ref android.R.styleable#BitmapDrawable_antialias
|
||||
* @attr ref android.R.styleable#BitmapDrawable_filter
|
||||
* @attr ref android.R.styleable#BitmapDrawable_dither
|
||||
* @attr ref android.R.styleable#BitmapDrawable_gravity
|
||||
* @attr ref android.R.styleable#BitmapDrawable_tileMode
|
||||
*/
|
||||
public class BitmapDrawable extends Drawable {
|
||||
|
||||
private static final int DEFAULT_PAINT_FLAGS = Paint.FILTER_BITMAP_FLAG;
|
||||
|
||||
Reference in New Issue
Block a user