Just learning the use of Viewpager, so want to watch its source code. The internet to find a lot of information about the steps below
1: Find Libs/android-support-v4.jar, build path-add to build Path
2:java Build path-libraries
Android-support-v4.jar
Click Source Attachment and edit
Select External location-external folder to find the path XXXXX\SDK\EXTRAS\ANDROID\SUPPORT\V4\SRC
Most of the Internet only said this step, but the individual is always unable to view the source code, until later found a method
3:libraries Select Android Private libraries to remove it
At this point you can watch the source code, personal guess there are a lot of people's way there is no third step may be because the previous use of Android-support-v4.jar all need their own association, and now eclipse automatically set it as the Android Private Libraries, The Android-support-v4.jar priority in Android Private libraries may be higher than referenced libraries, so the source cannot be viewed.
Haha, just run unexpectedly error, connect not on Android-support-v4.jar, after troubleshooting plus fourth step ~ ~
4:java Build Path-order and Export Android-support-v4.jar selected