很抱歉提出这样一个基本问题,实际上我需要在特定时间间隔后调用一个方法,该方法实际上是在 android 中为 textView 分配一个文本,这应该会改变。所以请建议我最好的方法来做到这一点。感谢你在期待。
{
int splashTime=3000;
int waited = 0;
while(waited < splashTime)
{
try {
ds.open();
String quotes=ds.getRandomQuote();
textView.setText(quotes);
ds.close();
}
catch(Exception e)
{
e.printStackTrace();
}
}
waited+=100;
}