Reputation: 44278
I am seeking to use ViewPager 's getCurrentItem()
method
I've encountered this issue before but I am not sure how to fix it. The issue was that one version of android-support-v4 revision did not have this method, and that a more updated revision had it.
On this machine though, I pulled Android Support straight through the Android SDK Manager, and this version of the android-support-v4 (rev. 7) does not have getCurrentItem()
method. My project now will not compile on this machine
How can I get previous revisions of android-support-v4.jar.
Upvotes: 0
Views: 1397
Reputation: 1007544
According to the Android SDK Manager, I have the latest Android Support package, and the android-support-v4.jar
contains getCurrentItem()
on its ViewPager
implementation, as I am using it.
The JAR I have is 271,754 bytes, dated 2012-03-21 19:02, with an md5sum
of c6c2148762c614d3bad120ca01491e34
.
Upvotes: 3
Reputation: 6591
It looks like it should be there in the API, but... if that won't work, I think that your underlying question has been answered here.
EDIT: Well, it looks like one of the later commentators suggested "you can just use getCurrentItem()!" so I'm not sure that actually answers the underlying question at all. :(
To answer the actual question you asked, you can find support-v4 lib r6 here
Upvotes: 1