PatchManager

public class PatchManager extends Object

Helper class to load and manage 9-patches and other drawables. Each block shape is composed of multiple shaded 9-patches that together make the overall shape. The PatchManager constructs new drawables with shared backing bitmaps to minimize Blocky's memory footprint.

Public Method Summary

NinePatchDrawable
getPatchDrawable(int id)
Get a patch drawable.

Inherited Method Summary

Public Methods

public NinePatchDrawable getPatchDrawable (int id)

Get a patch drawable.

Parameters
id The resource Id of the patch.
Returns
  • The drawable for the requested patch.