post 和postDelayed 的写法

带Runnable和不带Runnable的写法
refreshLayout?.postDelayed(
{adapter?.loadMoreComplete()},300
)
refreshLayout?.postDelayed(
Runnable { adapter?.loadMoreComplete()},200
)
refreshLayout?.post {
refreshLayout?.setRefreshing(refreshing)
}
refreshLayout?.post(
Runnable {
refreshLayout?.setRefreshing(refreshing)
}
)
``
网友评论