How to view the android API source code and support package source code in eclipse

Source: Internet
Author: User
Tags android sdk manager

Reprinted please indicate the source http://blog.csdn.net/xiaanming/article/details/9031141

In eclipse, You need to view the source code of a class. Press ctrl and click the class name to view the source code. For example, you can view the source code of the button,

Is it convenient? Next I will teach you how to associate it. We can associate the source code of android2.2 with the source code of the support package. below is

Download android2.2 source code

1. Click project and select Properties

Select the storage path of your source code, and then restart eclipse.

But when you want to view the android-support-v4.jar source code, you will find the tragedy, can not see, It is because we associatedAndroid-support-v4.jar source code, next to teach you how to associateAndroid-support-v4.jar source code, Android SDK In the extras directory also provides the support package source code, of course, the premise is that you use Android SDK manager downloaded Android support library. When we use the support package, it will usually lie quietly in the libs directory. At this time, we only need to create a properties file under the same directory, the name is the same as the support jar package you use, that is, the android-support-v4.jar has a file for the corresponding android-support-v4.jar.properties


EnterAndroid-support-v4.jar path on the line, the source code in the Android-SDK directory extras \ Android \ Compatibility \ V4 \ SRC, This Is My source code path, you can modify according to the situation


Close the project and open the project. Then you can find viewpager and press Ctrl to clickViewpager


Is it convenient?

 

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.