我有一个加载资源并显示消息“请稍候,加载”的活动,当所有资源都加载时,文本视图更改为“就绪”并更改活动的视图。问题是我想等待动画结束,但视图甚至在它们开始之前就被删除了。我怎么能等到呢?
tview1.startAnimation(desvanecer); tview2.startAnimation(desvanecer);
tview1.setText(R.string.ready);
tview2.setText(R.string.launcher_continue);
tview1.startAnimation(aparecer);
tview2.startAnimation(aparecer);
layout = (RelativeLayout) findViewById(R.id.launcher_layout);
screen = new Screen(context);
thread = new Thread(screen);
layout.removeAllViews();
layout.addView(screen);
thread.start();