开发者

how get Notification ( or Just highlight the Text ) while update on ServerSide in Android?

I have One ListView I fillup data in the listview by Arraylist it comes from web Service ( it comes from Serverside)

I want to do that if any Update is done so this Update is highlight in the Listview by changing TextColor or Something like that开发者_JS百科

for Example : Currently there is 10 Item in the Listview and 4 new Item is updated from Server so Item 1 - 10 display normal and 11-14 display in Different Color or Display small img near Text something like that

you can see my Code in this URL.


Once you received update information from server, call the adapter.notifyDataSetChanged(), which will recreate the view in the list so getView() method in List_BaseAdapter will be called where you can add your text format stuff based on position.

http://developer.android.com/reference/android/widget/BaseAdapter.html#notifyDataSetChanged()

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜