[Android] 切换语言后避免Activity重启方法
16lz
2021-12-04
今天上网看到这问题,便测试了下,发现下面的方法无效
android:configChanges="locale|layoutDirection"
于是乎看文档,发现有个keyboard很可疑,一测试就是它了。因此切换语言后避免Activity重启的解决办法就是下面:
android:configChanges="locale|layoutDirection|keyboard" //缺一不可,多是可以的
以此记之
更多相关文章
- 我的android 第8天 - 单元测试
- GMS认证-Android(安卓)VTS测试
- (转载)Instrumentation 框架简介
- Android(安卓)CTS测试
- Android下junit单元测试、logCat的使用
- Android(安卓)Studio 单元测试(instrumentation)
- Android(安卓)渗透测试学习手册(二)准备实验环境
- zz :Android测试之Monkey
- android 开发框架