且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更新android中的相对时间

更新时间:2023-02-23 17:07:31

您必须每 X 秒在适配器上合并一次重新计算.如果您更新适配器,列表视图也会自行更新.

You will have to incorporate on your adapter a recalculation every X seconds. And if you update your adapter, the listview will update itself too.