Android Development Viewflipper Touch Animation

Source: Internet
Author: User

Background information:

You need to do three things before you do android: First, download the Android SDK (you can download it here), second, prepare the project editor (I recommend using Eclipse) third, download the Android Eclipse plugin.

After you have prepared your environment, you can begin to learn this tutorial.

When you first open the Android SDK, you need to create a virtual device that I open to recommend creating a universal device for the target Android 1.6 API level 4 use, and then you need to add hardware features such as: SD card support, Accellerometer, Camera support and so on, if you need help, install Android virtual devices to follow this link. Http://developer.android.com/guide/developing/tools/avd.html

Start Eclipse Project:

1, choose File > New > Project.

2. Choose Android > Android Project and click Next.

3, select the project directory:

A, enter a project name: This is the folder where you created the project

B, select Create New project in workspace according to the directory. : Choose the location of your workspace

C, according to target, select target for Android, which is used as the target of the project creation. The generated target specifies the Android platform for the application you want to build.

Description: Unless you know that you will use the new API introduced in the latest SDK, you should choose one of the lowest platform versions possible, such as Android 1.6.

D, fill in the necessary fields according to the attributes

@ Type the name of the application:

@ Type A package name: All your source code is stored in this package

@ Select Create activity item and type a name for your primary

@ Enter a min SDK Version, an integer that indicates the minimum API level required to run the application correctly. Entering this will automatically set the Minsdkversion attribute in the Android manifest file. If you are unsure of the appropriate API level to use, copy the listed API levels for the build target you selected in Target tab.

4. Click Finish

When you are finished, ADT has created the following folders and files for you:

src/: Contains any activityjava files.

: Contains the Android.jar files generated by the compiled application.

gen/: Contains the Java files generated by ADT. Contains R.java files and interfaces created from Aidl files.

assets/: This is empty and can be used to store raw asset files.

Res/: This is the application's resource file, such as: drawable files, layout files, string values, and so on.

Androidmanifest.xml: The Android Manifest for the project.

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.