I am getting an error when trying to load an asset from the resource folder:
NinePatchDrawable ninePatchObj = ((NinePatchDrawable) context.getResources().getDrawable(R.drawable.orange_btn));
Returns
java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable
This asset works properly when using the XML button object.
Thank you for any help provided.