Drawable 转换为 Bitmap
方式一:
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.emoji_0000);
方式二:
BitmapDrawable bd = (BitmapDrawable) getResources().getDrawable(R.drawable.emoji_0000);
Bitmap bitmap= bd.getBitmap();
Bitmap 转换为 Drawable
Drawable bitmapDrawable = new BitmapDrawable(getResources(),bitmap);
Resourse 转化为 Drawable
Drawable drawable= getResources().getDrawable(R.drawable.emoji_0000);