Android???????????????2
???????????? ???????[ 2013/12/20 11:31:07 ] ????????
?????????????????????У??????????????????????????????????????????????Idea????????????????????塢?????????????????е??????????????????????????????????
???????????????????????????????????????????Android???MVC??????????????????????????Щ???????????????????????MVC????????????????????κ???ó??????????????????Splash??棬?????????????????????????30?????????????????????棬???????????????????????????????
????????????????????????2???????????????????????????????????Android????????????Android???????к????????????????????????????????????????????Ч????????κ???????塣
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????10?????????????????????????????????????????????Splash????????
???????????????SplashActivity???????????????
package com.bjcic.wkj;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.WindowManager;
public class SplashActivity extends Activity {
// ???????????---???
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//???
setContentView(R.layout.splash);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN??
WindowManager.LayoutParams.FLAG_FULLSCREEN);
appModel = (AppModel)getApplication();
appController = appModel.getAppController();
appController.postDelayed(new Runnable() {
/**
* ??10????????????
*/
@Override
public void run() {
appController.processEvent(new AppEvent(SplashActivity.this?? AppEvent.EVE_SPLASH_END?? null));
}
}?? AppKeys.SPLASH_DURATION);
// ???????????????????
}
// ???????????---????
private AppController appController = null;
private AppModel appModel = null;
}
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11