Bitmap bitmap=BitmapFactory.decodeFile(image, options);  
            final Drawable drawable=new BitmapDrawable(bitmap);  
drawable!=null是什么意思

解决方案 »

  1.   

    如果 drawable 不等于 null ?你想问什么?
      

  2.   

    是的
    没有对drawable有了解的呢我是个android菜鸟希望各位大侠们多多帮忙
      

  3.   

    你把drawable在log里打印出来看看是什么就知道了哦
      

  4.   

    Bitmap bitmap=BitmapFactory.decodeFile(image, options);  //解码载入的位图,封装成bitmap
    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