I googled but i couldn’t find any article to describe about the difference between Bitmap and Drawable in Android.
I googled but i couldn’t find any article to describe about the difference between
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A Bitmap is a representation of a bitmap image (something like java.awt.Image). A Drawable is an abstraction of “something that can be drawn”. It could be a Bitmap (wrapped up as a
BitmapDrawable), but it could also be a solid color, a collection of other Drawable objects, or any number of other structures.Most of the Android UI framework likes to work with Drawable objects, not Bitmap objects. A View can accept any Drawable as a background. An ImageView can display a foreground Drawable. Images stored as resources are loaded as Drawable objects.