1
我試圖解決這個問題,但現在我在這裏嘗試我的運氣。如何在animain完成之前顯示下一行
我使用惰性負載來顯示自定義adaper中的圖像。 我想在圖像下載時加載淡入圖像。
這是工作,但線程停止,而動畫是ON
public void run()
{
if(bitmap!=null) {
myProgressBar.setVisibility(View.INVISIBLE);
imageView.setVisibility(View.VISIBLE);
Animation animation = new AlphaAnimation(0.0f,1.0f);
animation.setDuration(800);
imageView.startAnimation(animation);
imageView.setImageBitmap(bitmap);
}else {
myProgressBar.setVisibility(View.VISIBLE);
imageView.setVisibility(View.INVISIBLE);
imageView.setImageResource();
}
我想要做的是顯示即使privius animaion未完成下一行。
任何ides?
這是我使用的imageloader類的原始版本:http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-i- images-in-listview/3068012#3068012我添加了一個進度條,並且我想淡入其中的圖像,進度條在那裏,圖像淡入,但在動畫完成之前顯示的listview isent中的其他行中的下一圖像。 – FoJjen 2010-07-29 22:40:02