• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create news fead page like facebok/twitter in android?

 
Slaxmi Raj
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to android,I have task to do the functionality exactly like Facebook/twitter news feed page. In this page i have to load user images, user details comments etc, and scroll should be very smooth and while reaching end of the page have load more items, I applied list view for this , but the problem is scroll performance is very very poor.Any body please suggest me how can i do this task. Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds as if you have already implemented this, so I don't think we need to tell you how to do it. There can be any number of reasons why performance is bad - without knowing how exactly you have implemented this, I don't think there's much we can advise on how to proceed.
 
Slaxmi Raj
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply,
First of all i called async task to load image from url,at that time while loading image scroll was strucked(up/down), after that i applied image loading lib like Picassa and nostal image loading lib etc, no result at all, I Observed gmail/facebook/twitter home page shows number of user images , profile details etc including very smooth and fast scroll .
Iam unable to guess how they developed that.Please suggest me how can i impress the end user by giving such smooth and fast scroll in the newsfeed page.
Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Loading images in the background is good. Loading other data that is needed to create the GUI (number of posts, number of images, profile details that are visible on the first screen) first -before stating background downloads- would seem an obvious approach. Another optimization would be not to load all data in one go - start by downloading the data for maybe the first few screens, and only once the user starts scrolling down get the data for the items further down. Also make sure the server responds quickly (through caching etc.).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic