About 2 years ago, I wrote a small project that seemed to be the Spring Festival. At home more idle, spent nearly one months (this want to write to take to participate in the competition, documents are written. Then think about it, take the other one, and this will be a practiced hand. A person to do, and write code and cut pictures of what, compared to egg pain. Code is not too much, or some of the places to be consulted, sharing, there are errors please correct me.
Note :
Recommended to run on the resolution 320*480 Phone (no time to cut other resolutions of the graph, not the resolution of the display may be a bit problematic)
The shake-shake function cannot be tested on the simulator.
Android version recommended 2.3.3
(Rough test, there is a place where the crash.) Have time to change the local data to be captured from the Web page all together
Program Structure diagram :
Interface :
At that time for the sake of easy, direct use of local data. (In fact, later found that the local data more troublesome, to tidy up too many things)
source code structure diagram :
The SRC directory is used to store project packages and Java source files.
The following is a subdirectory of the SRC directory:
> src
>├com.taiyuancity.adapter
>├com.taiyuancity.app
>├com.taiyuancity.bean
>├com.taiyuancity.dao
>├com.taiyuancity.ui
>├com.taiyuancity.util
>├com.taiyuancity.widget
Function Description:
-com.taiyuancity.adapter-list, grid and other adapter packages (home grid, favorite list adapter)
-com.taiyuancity.app-Storage Package application startup, configuration, etc.
-com.taiyuancity.bean-Entity Package (home grid entity model, Collection List entity model)
-com.taiyuancity.dao-database (for collection and de-collection)
-com.taiyuancity.ui-bread and activity (various activity)
-com.taiyuancity.util-Toolkit (shake the random function to use, listen to the accelerator check Shake)
-Com.taiyuancity.widget-Custom Control Package (Customize the scroll control of the display at first boot)
Android---Project sharing (with source)