Android - What is the difference between Bitmap and Drawable?

Asked

Viewed 68 times

1

I’m developing an app that makes a CRUD to fill out information on the screen. One of this information is photos.

I would like to know better the difference between these two objects to find out which one would be the most correct to apply.

1 answer

4

Drawable is something that can be drawn. For example. layout, vector image (line, circle), font, image and so on

Bitmap - is a specific type of Drawable that is image, such as: PNG, JPEG or more

  • I believe that Android Bitmaps are not compressed. They can come from . jpeg or . png but its memory format is the uncompressed "bit array".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.