PRem Kumar
PRem Kumar

Reputation: 27

How and where to store plenty of images that are to be displayed in app

I am trying to develop an android app, where I will be required to display a lot of images such as infrastructure, events and so on.

I don't think that storing them in drawable folder is the best option. So what would be the most efficient way to do it?

Upvotes: 1

Views: 67

Answers (2)

Mayank Kumar Chaudhari
Mayank Kumar Chaudhari

Reputation: 18538

You can store them in assets directory.

Additionally you can convert these images to webp by right-clicking them inside android studio project explorer and clicking convert to WebP.

For Vector assets, you can let them be inside drawable folder.

Upvotes: 1

Tudor S.
Tudor S.

Reputation: 819

If you use vector drawables it shouldn't be a problem if you store them in the drawables folder - they're small and scalable.

Upvotes: 1

Related Questions