Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

drawable v21, v24? what is it? [duplicate]

When I'm creating drawables some of them goes to v21, v24 folder.

Why is this happening?
Will they appear in andoid api 15 (android 4)?
Do I need to do something?

like image 715
jsHate Avatar asked Nov 03 '17 10:11

jsHate


People also ask

What is difference between drawable and drawable v24?

Classic drawable resources such as images are stored in the drawable folder. In contrast, vector drawables are stored in drawable-v24 . For this project, keep the drawable default and click OK.

What is the preferred image format for the drawables?

Supported file types are PNG (preferred), JPG (acceptable), and GIF (discouraged).

What is the use of drawable folder in Android?

A drawable resource is a general concept for a graphic that can be drawn to the screen and which you can retrieve with APIs such as getDrawable(int) or apply to another XML resource with attributes such as android:drawable and android:icon . There are several different types of drawables: Bitmap File.

What is r drawable?

R. drawable. image means the drawable resource, in this case image. Drawable means graphic which can be drawn.


1 Answers

Those drawable folders are actually for providing device compatibility (i.e. to manage different screen densities in android) and different android versions.

like image 129
Sagar Kacha Avatar answered Oct 17 '22 22:10

Sagar Kacha