开发者

Using file aliases inside an Android APK?

开发者 https://www.devze.com 2023-02-12 18:45 出处:网络
Is it possible to us file aliases within an Android APK? For example, I have the same file that I wish to reference using R.drawable.icon_name, and I am using the same icon for hdpi, ldpi, and mdpi.

Is it possible to us file aliases within an Android APK?

For example, I have the same file that I wish to reference using R.drawable.icon_name, and I am using the same icon for hdpi, ldpi, and mdpi. Is it pos开发者_运维百科sible to use file aliases/ symlinks to have the icon in /res/hdpi/ and create aliases in /res/mdpi/ and /res/ldpi/ pointing to that file, or is there a better approach altogether?


Is it possible to use file aliases/ symlinks to have the icon in /res/hdpi/ and create aliases in /res/mdpi/ and /res/ldpi/ pointing to that file

There are alias resources that you can use.

0

精彩评论

暂无评论...
验证码 换一张
取 消