About resource internationalization
- 语言国际化
如果控件尺寸固定,当切换语言的时候,文字长短发生变化如何解决?
可以使用谷歌提供的解决方法。
Learn android resources internationalization
可以使用谷歌提供的解决方法。
Android 4.4 下无法切换泰文,想探讨下,该如何做 Android 4.4 系统下的兼容呢,因为这个方法
Locale.forLanguageTag(language); 需要 api 大于等于 21 才可以,于是我这么做,不再崩溃,但是无法获取到泰文,按钮文字是空的,有空探讨下,谢谢
// locale = Locale.forLanguageTag(language);
// 获取当前资源对象
Resources resources = context.getResources();
//获取设置对象
Configuration configuration = resources.getConfiguration();
//获取屏幕参数
DisplayMetrics displayMetrics = resources.getDisplayMetrics();
locale = new Locale("th");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.