我相當新的android。我想在Android中將兩個圖像背對背(每一個持續一段時間)顯示爲閃屏。我能夠顯示單個圖像,但努力顯示其他圖像。如何在android中顯示多個圖像作爲啓動畫面?
public class SplashScreen extends Activity {
/**
* The thread to process splash screen events
*/
private Thread mSplashThread;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Splash screen view
setContentView(R.layout.splash);
final SplashScreen sPlashScreen = this;
// The thread to wait for splash screen events
mSplashThread = new Thread(){
@Override
public void run(){
try {
Thread.sleep(1000);
}
catch(InterruptedException ex){
}
finish();
// Run next activity
Intent intent = new Intent();
intent.setClass(sPlashScreen, MainActivity.class);
startActivity(intent);
stop();
}
};
mSplashThread.start();
}
有沒有一種方法可以替換ImageView中的圖像?
謝謝!