Android 查看每个应用的最大可用内存
Android退出应用最优雅的方式
android 输入法弹出时不能挡住按钮把布局顶上去
源码分析commitAllowingStateLoss() 和commit()的区别
commit会检测,抛出异常
private void checkStateLoss() {
if (mStateSaved) {
throw new IllegalStateException(
"Can not perform this action after onSaveInstanceState");
}
if (mNoTransactionsBecause != null) {
throw new IllegalStateException(
"Can not perform this action inside of " + mNoTransactionsBecause);
}
}