简体   繁体   中英

Facebook like style, Refresh ListView and Notify

I have implemented a listview which consist of text and image from a json parse. Wish to do something like the facebook app does. Refresh automatically, sync json from the server and notify user like "2 New Stories" (see the image attached below), then attach the new stories to the top of existing list view. I have no idea how "2 New Stories" notification emerges from the listview. Kindly help me to implement this like facebook style listview.

在此处输入图片说明

You can implement a Crouton library and modify it a little to achieve the style you want.

Follow this link for more info & implementation details

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM