Bitmap bitmap=BitmapFactory.decodeFile(image, options);
final Drawable drawable=new BitmapDrawable(bitmap);
drawable!=null是什么意思
final Drawable drawable=new BitmapDrawable(bitmap);
drawable!=null是什么意思
没有对drawable有了解的呢我是个android菜鸟希望各位大侠们多多帮忙
final Drawable drawable=new BitmapDrawable(bitmap);
//
public BitmapDrawable (Bitmap bitmap)
This constructor is deprecated.
Use BitmapDrawable(Resources, Bitmap) to ensure that the drawable has correctly set its target density.
Create drawable from a bitmap, not dealing with density.
意思就是说由于创建一个Drawable对象,并确保生成的对象的密度,
//
drawable!=null//判断drawable是否是空值大致看了下Drawable是对图像处理的类,翻转等处理,你可以看下Android API