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?