Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我阅读了文档,SwipeRefreshLayout但找不到RetryPolicy. progressbar如果在 5 秒内未获取数据,我希望 SwipeRefreshLayout 显示重试。
SwipeRefreshLayout
RetryPolicy
progressbar
任何准则
正如@Wizard 所说,你可以这样做。
new Handler().postDelayed(new Runnable() { @Override public void run() { if(data_isnt_fetched){ //Fetch data again } } }, 5000); //5sec