Is the Facebook Android app using ListView, or is there another way to create this nice list of posts on the timeline?

Does Facebook use the Android ListView application, or is there another way to create this nice list of posts on the timeline?

It is also very fast at the moment, and when u scrolls very fast up and down, it does not show any signs of reloading images or graphics, unlike the usual ListView, when you use the dynamic image loader and caching.

+4
source share
2 answers

It can be several LinearLayouts inside ScrollView. The channel has different types and can have different layouts, layouts can be dynamically inserted into scrollview.

As for scrolling and performance, I think the channel is preloaded. this is good practice if you do not want the user to reach the end of the list in order to load more data.

0
source

Well, I don’t know the answer, but I can provide you with a cheat code for this.

Download the app app app app Facebook and then decompile it

  • Change the facebookapp.apk extension to facebookapp.zip, click "Yes" to display a dialog box. Thanks to this, you can view the manifest and xml layout files, but the code is still not available.

  • Than you found them the classes.dex file, which uses dex2jar to convert classes.dex files to classes.jar.

  • Use the Java Decompiler (jd-gui) or eclipse to view these class files.

You can do this in any application, this way you may not get the exact code, but get the basic idea of ​​how the application works.

For any problem, google also for the tools you need that you can easily find on Google.

0
source

All Articles