简体   繁体   中英

Facebook timeline like listview

The Facebook timeline seems to display all the feeds in the listview vertically. When the user shares his/her multiple photos, then those photos are displayed in horizontal list view. Has anybody any idea, how this actually works. Because I don't think nesting a horizontal listview within vertical listview works. Nor does the horizontal listview functions smoothly within the vertical scrollbar. So, if anybody has any idea about how Facebook implements its views in timeline, do share it here.

您可以在垂直列表视图中使用viewpager。演示在此链接演示项目中给出,并在此处进行了详细说明

To use a gallery for the photos check out that example: https://stackoverflow.com/a/11544447/944070

You may also need an implementation of different list items per case, so this answer would also be helpful https://stackoverflow.com/a/3515221/944070

That can be done using custom list view. Below tutorial covers facebook like feed view using volley networking library

Android Facebook like Custom ListView Feed using Volley

在此处输入图片说明

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