在主 Activity 的 onCreate 中加入下面的代码,可以不用考虑机型的执行速度。
1
2
3
4
5
6
|
getWindow().getDecorView().post(
new
Runnable() {
@Override
public void run() {
myHandler.post(mLoadingRunnable);
}
});
|