• drawable转为bitmap
    其中的appcontext可以是activity的context属性也可以是全局的appContext
    1
    val music_default_art = BitmapFactory.decodeResource(appContext.resources,R.drawable.music_default)
  • bitmap转为drawable
    1
    val drawable =  BitmapDrawable(bmp)