Android --- project sharing (with source code), android --- source code

Source: Internet
Author: User

Android --- project sharing (with source code), android --- 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)


Source Code address: Https://github.com/xn4545945/TaiyuanCity (just Download Zip)


Reprinted please indicate the source: http://blog.csdn.net/xn4545945



Summarize how to read the source code of other Android Projects

It may be difficult for most people to read the project source code. First, the first obstacle: give up when you see the project! If there are 10 or more people, this may be the case above. Analyze the idea: How can I read so many codes! I want to read it for a long time! Forget it. Let's take a look at the Demo. In this way, they just import the project to eclipse, click a few mouse clicks, and then there will be no more details. Solution: in fact, the reason for their termination is very simple, that is, it is too troublesome. Well, tell you that this problem can affect you. In fact, your development path can also be terminated. To learn anything, you must spend time, energy, and preparation for difficulties. If you want to enter the sky in one step, it is possible that, unless you are a genius, but after all, there are too few geniuses! For development, I don't want to learn 1 + 1. So, Let's adjust your mind first. What kind of mentality should you have? That is: Prepare for difficulties and have the confidence to solve their sufferings. The mentality problem has been solved, that is, the code reading technique. Many people don't know how to get started with a project, so they just read it in a random manner. When they see it, they find that they cannot proceed, and began to reorganize their own ideas. This is a waste of time. In fact, it is best to take the following steps for reading a project (personal opinion, for reference only): 1. Use this application or game, until you are familiar with its use process and functions 2. Analyze the code implementation based on your own experience (overall) 3. If you have any conditions and the original author asks for project ideas 4. Start from the Activity that was started first, understand how each Activity function is implemented and its layout is implemented. 5. If you encounter code that you do not understand, first find the search engine (which can be solved in general ). If not, you can ask others. 6. Summarize the new knowledge points and review them on a regular basis. 7. The most important thing is: I think you need to write it by yourself, you may need to re-write the project, or design a similar project, or write only a part of the project. Why do you need to do it yourself? Everyone knows about coder. It makes no sense if you learn the best theory and don't do it! Therefore, you can solve the problem and learn more. This is experience ·······

1. Android project source code

Has been sent to your mailbox, please find the best answer

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.