drawable

Every image on android should be treated as a bitmap

I was having a problem with loading images into a TextView, when I came across a pretty dumb doubt, rs, would anyone know how ... larify me, I appreciate it. And also, no matter where the image comes from, should I always resize it as if it were a bitmap?

When should I use mipmaps?

After Google started adding mipmaps I ended up not searching exactly why. Even with this addition, it doesn't stop anything ... real difference between Mipmap and Drawable ? When should I use mipmap ? Is there any limitation in case I use Drawable ?

Define background LinearLayout from variable String

I have a function that takes a number (in String format) as a parameter and checks if it is between the numbers from 1 to 5. ... i); } But this generates an error as the received format is String, and the required format is Drawable, how to solve this?