简体   繁体   中英

How to keep hdpi,mdpi,ldpi and xhdpi files in the Android asset folder?

I know it's not possible to create subfolders in android drawable folder and we can use the asset folder to keep our external files. My problem is how do we store the hdpi,mdpi,ldpi and xhdpi resources separately in the asset folder. The app Im developing has around 75 icons and I need to maintain icons for each resolution level and need to categorize the icons according to the some categories in the app.

Your advice is highly appreciated.

Thanks and Regards Pathum

There is no support for switching between assets based on the device configuration. I suggest using a naming convention for your icons to correspond to your categories and using the resources folder. If you post more details, I can suggest specific ways of doing this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM