HGPB
HGPB

Reputation: 4376

Swiping between activities with swipe sticking to finger

I'm looking for a way to slide between my activities with the slide effect sticking to ones finger.

I'm not looking for an animation effect.

Currently I am using fling and onTouch classes. These work fine but I would like to create a "sticky" version for my library.

I have come across page viewer but it doesn't look like it will work between activities. Or maybe I'm not understanding it.

Is there any code out there with an example or video so you can see the effect is correct. Essentially its the Android Homepage effect i'm looking for. To be implemented between activities. Can't find anything practical on the web to use.

Thanks.

Upvotes: 0

Views: 1435

Answers (1)

JRaymond
JRaymond

Reputation: 11782

Consider Fragments as an implementation. If you're targeting older OS releases, like gingerbread or froyo, you can use the compatibility package and the ViewPager elements to do pretty much exactly what you're describing. Theres a few decent tutorials on it running around, here's one of them. Good luck!

Upvotes: 1

Related Questions