Android --- project sharing (with source code)
I wrote a small project about two years ago. It seemed like the Spring Festival. At home, it took me nearly a month (I wanted to write all the documents for the competition. Later, I thought about it. I took the other one, so I should be a trainer ). It hurts a person to write code and cut pictures or something. There are not many codes, but some of them are for reference. please correct me if you have any errors.
Note::
In resolution320*480Running on the mobile phone (there is no time to switch other resolution graphs, it may be a problem if it is not the resolution)
The shake function cannot be tested on the simulator.
Android 2.3.3
(After a rough test, there was a crash. I have time to change all the local data to capture from the web page)
Program Structure:
Interface:
Local data was used directly for graphic purposes. (In fact, it was found that local data is more troublesome and there are too many things to be sorted out)
Source code structure:
The src directory is used to store project packages and java source code files.
The following is a subdirectory of the src directory:
> Src
> Taobao com. taiyuancity. adapter
> Taobao com. taiyuancity. app
> Taobao com. taiyuancity. bean
> Taobao com. taiyuancity. dao
> Alibaba com. taiyuancity. ui
> Taobao com. taiyuancity. util
> Taobao com. taiyuancity. widget
Function Description:
-Com. taiyuancity. adapter-list, grid, and other adapter packages (Home Page grid, favorite list adapter)
-Com. taiyuancity. app-startup and configuration of the Storage Package Application
-Com. taiyuancity. bean-object package (Home Page Grid Object Model, list object model added to favorites)
-Com. taiyuancity. dao-database (used for favorites and cancellation)
-Com. taiyuancity. ui-interface package and activity (various activities)
-Com. taiyuancity. util-Toolkit (the random function used for shaking, listen to the accelerator to check shaking)
-Com. taiyuancity. widget-custom control package (customize the scroll control of the display screen at the first startup)