每次用户打开应用程序时,我们都会使用启动画面显示公司徽标。目前,我们正在显示3秒的启动画面。Android启动画面持续时间
下面是代码:
private static int SPLASH_TIME_OUT = 3000; // Delay of 3 Seconds
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash_screen);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
// This method will be executed once the timer is over
Intent i = new Intent(SplashScreenActivity.this, AnotheActivity.class);
startActivity(i);
// close this activity
finish();
}
}, SPLASH_TIME_OUT);
}
}
但这个启动画面持续时间只是随机团队内选择。 我们知道,一般来说,Splash屏幕并非在Android应用生态系统中所鼓励的,但由于这是我们的应用程序的需求,因此它已得到实施。
我的问题:是否有任何标准的Android指南/最佳实践选择正确的启动画面持续时间?
如果你不这样做在那些3秒东西,为什么还要表现出来? *这是我们应用的需求,*需要什么? –
*是否有任何标准的Android指南/选择正确的启动画面持续时间*的最佳做法。正如你所说,这不是鼓励,为什么你期望最佳做法*不鼓励* – Blackbelt
@Blackbelt因为它在Android这种常见的习语,因此!但是,如果没有这样的基准,那就OK了。 – AADProgramming