简体   繁体   中英

Does Facebook's Android App uses ListView or is there another way to create that nice list of posts in a timeline?

Does Facebook's Android App uses ListView or is there another way to create that nice list of posts in a timeline?

Also it's currently very fast and when u scroll very fast up and down it doesn't display any sign of reloading images or graphics unlike the normal ListView when you're using dynamic image loader and caching.

It could be multiple LinearLayouts inside a ScrollView. The feed is of different types and can have different layouts, the layouts can be dynamically pushed onto a scrollview.

As far as the scrolling and performance is concerned, i think the feed is prefetched. thats a good practice if you do not want the user to reach the end of the listview for it to load more data.

Well I dont know answer but i can provide you a cheat code for this.

Download Facebook app apk file and after that decompile it

  1. Change the extension of facebookapp.apk to facebookapp.zip, click Yes to any dialog appears. By this you can view manifest and xml layout files but code is still inaccessible.

  2. Than their you found a classes.dex file, that use dex2jar to convert classes.dex files to classes.jar.

  3. Use Java Decompiler (jd-gui) or eclipse to view those class files.

You can do this to any app, By this you may not get the accurate code but get the basic idea how app works.

For any problem refer to google also for tools need you can find easily by google.

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