简体   繁体   中英

Language dependent android app launcher icon

我想知道是否有一种方法可以在应用程序中存储多个应用程序启动器图标(ic_launcher),并以对应于用户语言(例如strings.xml文件)的方式使用它们?

您可以通过使用语言环境后缀定义目录来存储与语言环境相关的资源,例如,您可以创建目录res\\mipmap-rures\\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.

请参考此屏幕截图

If you need to change the resources (images, app icons, strings or any resource file) depending on the phone language, create a new folder structure like this screen shot (with language code suffix) and add them

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