Example usage for Java android.graphics.drawable NinePatchDrawable fields, constructors, methods, implement or subclass
The text is from its open source code.
NinePatchDrawable(@NonNull NinePatch patch) Create drawable from existing nine-patch, not dealing with density. | |
NinePatchDrawable(@Nullable Resources res, @NonNull NinePatch patch) Create drawable from existing nine-patch, setting initial target density based on the display metrics of the resources. | |
NinePatchDrawable(@NonNull NinePatchState state, @Nullable Resources res) The one constructor to rule them all. | |
NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, Rect padding, String srcName) Create drawable from raw nine-patch data, setting initial target density based on the display metrics of the resources. |
void | draw(Canvas canvas) |
int | getIntrinsicHeight() |
int | getIntrinsicWidth() |
boolean | getPadding(@NonNull Rect padding) |
void | setBounds(int left, int top, int right, int bottom) Specify a bounding rectangle for the Drawable. |