Yahoo weather for Android (1)
Introduction:
I remember there was a copy of the code uploaded in the second half of last year (Super Realistic imitation Yahoo weather Interface): http://download.csdn.net/detail/weidi1989/6312271
However, it is only a single interface, and there are some serious bugs. Remember that the ListView that can change positions cannot cache items, which leads to the equivalent of a card when Scrolling up or down, performance can be imagined. That's why I gave up on development. This year, I was so busy. Some netizens just said that they wanted me to continue to finish the function. The position-changing ListView could be removed, although this problem is still not solved (this function has been disabled), it is improved.
Although it is only perfect, there will also be problems. Two of them think it is more meaningful:
①. The multi-type Item caching and optimization of ListView is not only the optimization of ViewHolder and ListView's Item layout performance.
② ViewPager uses Fragment, including dynamic addition and deletion, cache, and optimization.
I will explain these two questions in detail in the following article (coming soon ).
Due to my limited time and manpower, the application has not been carefully tested, and bugs are inevitable. Please forgive me.
Let's take a look (the source code is rolled to the bottom of the article ):
Source Code address:
GitHub: https://github.com/way1989/WayHoo
OsChina: http://git.oschina.net/way/WayHoo
Http://download.csdn.net/detail/weidi1989/7847811 (CSDN)