2010-07-16 87 views
0

嗨,我想逐一顯示圖像,這意味着如果image2在2秒後顯示另一圖像顯示。但我不想使用線程爲什麼因爲我的應用程序很小。我想要使用處理程序。所以給我一些建議,提前致謝逐個顯示圖像

回答

0

你可以做一件事情在2秒的時間間隔在ImageView中顯示圖像:Implement Timer Control

並在onTickCountDownTimer類的書寫圖像設置代碼。

public void onTick(long millisUntilFinished) { 
     imgView1.setImageResource(imgValue); 
    } 

你可以參考 This example並實現類似的東西。

享受!