GridView のビューを非表示および表示にしようとしています。初めて INVISIBLE AND VISIBLE を呼び出したときに機能させることができますが、その後の試みは機能しません。
private void flashImageSeq(){
int i = 0;
while (i < 9){
animate(i);
++i;
}
}
private void startThread() {
t = new Thread() {
public void run () {
try {
sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
};
t.start();
}
private void animate(int position){
gridview.findViewById(R.id.gridview);
// imgView is defined in View getView for Adapter code not shown
ImageView imgView = (ImageView)gridview.getChildAt(position);
imgView.setVisibility(ImageView.INVISIBLE);
startThread();
imgView.setVisibility(ImageView.VISIBLE);
}
flashImageSeq() の 2 回目の呼び出しが機能しない