android image view全屏显示一张图片,隔几秒换一张图片,求源码~
2个回答
展开全部
mTimer = new Timer();
mTimerTask = new TimerTask()
{
@Override
public void run()
{
Message msg = new Message();
msg.what = delta;
mHandler.sendMessage(msg);
}
};
mTimer.schedule(mTimerTask, delaytime, delaytime);
}
Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg)
{
换图
}
}
mTimerTask = new TimerTask()
{
@Override
public void run()
{
Message msg = new Message();
msg.what = delta;
mHandler.sendMessage(msg);
}
};
mTimer.schedule(mTimerTask, delaytime, delaytime);
}
Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg)
{
换图
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询