我想知道是否有一种方法可以在应用程序中存储多个应用程序启动器图标(ic_launcher),并以对应于用户语言(例如strings.xml文件)的方式使用它们?
您可以通过使用语言环境后缀定义目录来存储与语言环境相关的资源,例如,您可以创建目录res\\mipmap-ru
和res\\mipmap-fr
,因此俄语和法语语言环境图标将从相应的文件夹中获取。
yes you can do it using different resources drawable folder for images just like string.xml. here is the example .
for example res/drawable-ja/ Contains graphics optimized for use with Japanese.
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.