Java源码示例:org.appcelerator.titanium.view.TiDrawableReference

示例1
private void handleImage(Object val)
{
	if (val instanceof TiBlob) {
		// this is a blob, parse accordingly
		TiBlob imgBlob = (TiBlob)val;
		TiDrawableReference ref = TiDrawableReference.fromBlob(proxy.getActivity(), imgBlob);
		tiv.setImageBitmap(ref.getBitmap());
	} else {
		String imgValue = (String)val;
		tiv.setImageBitmap(loadImageFromApplication(imgValue));
	}
}