开发者

refresh the table in android

开发者 https://www.devze.com 2023-01-15 03:22 出处:网络
In my android applicatio开发者_StackOverflow社区n i am using a table with scrollview.I am giving the user a service suchthat if the user clicks on a row and say delete the row gets deleted from the ta

In my android applicatio开发者_StackOverflow社区n i am using a table with scrollview.I am giving the user a service suchthat if the user clicks on a row and say delete the row gets deleted from the table.But after this deletion i want the table to get refreshed and load only the fresh data from database.

Could anyone please let me know how can i refresh the table or refresh the page in android?

Please share your valuable suggestions .

Thanks in advance :)


Call your adapter's notifyDataSetChanged() when items have been changed, added or deleted. Call notifyDataSetInvalidated() when all data is gone.


I achieved it by calling the intent again for the same page.

0

精彩评论

暂无评论...
验证码 换一张
取 消