I'm working on an app that will have hundreds of different icons (as vector drawables) for users to select from. What is the best way to organize these, save them, and reference them?
- Is it best to store the drawable names (R.id.icon) in a database and then call them from there? Building a giant ArrayList doesn't seem right. If so, is there a way to read the names of all drawables in the drawables folder rather than typing them one by one?
- Do I really just important 100 vector images into the drawable folder? Is there anyway to separate them from other drawables in my app?
CodePudding user response:
you shouldn't put them in database, you have to load them in static int arrays where you can save the position of the icon in a database or in preference. the problem of saving them directly in the database is later when you update the app it will cause you lot of trouble