Example usage for android.graphics.drawable NinePatchDrawable NinePatchDrawable

List of usage examples for android.graphics.drawable NinePatchDrawable NinePatchDrawable

Introduction

In this page you can find the example usage for android.graphics.drawable NinePatchDrawable NinePatchDrawable.

Prototype

@Deprecated
public NinePatchDrawable(@NonNull NinePatch patch) 

Source Link

Document

Create drawable from existing nine-patch, not dealing with density.

Usage

From source file:Main.java

public static NinePatchDrawable createScalableDrawable(Bitmap pic) {
    NinePatch np = new NinePatch(pic, pic.getNinePatchChunk(), null);
    return new NinePatchDrawable(np);
}