80,351
社区成员
发帖
与我相关
我的任务
分享
public boolean postDelayed(Runnable action, long delayMillis) {
final AttachInfo attachInfo = mAttachInfo;
if (attachInfo != null) {
return attachInfo.mHandler.postDelayed(action, delayMillis);
}
// Assume that post will succeed later
ViewRootImpl.getRunQueue().postDelayed(action, delayMillis);
return true;
}
View.postDelayed也是利用handler.postDelayed实现的。所以本质上应该没有区别。