Android: Change splash screen based on language

南楼画角 提交于 2019-12-02 13:40:24

You can put different drawables and layouts in different resource directories such as:

res/drawable-en/
res/drawable-it/
res/layout-en/
res/layout-it/

en for english and it for italian. It might be best to keep the "default" resources in the standard directories with no language specifier.

If you name the actual files inside those directories as the same name, then the system will automatically pick the correct file depending on the users locale.

See Android Docs for more information.

http://developer.android.com/training/basics/supporting-devices/languages.html

you can use multiple resource folders and it will load images based on device locale/config

having the folders with prefix will automatically detect/load for local

eg

res/layout-en/
res/layout-it/
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!