views:

140

answers:

1

Hi,

I want to implement something like the Android Calendar week view, where you can move through the weeks -- or like the Talk app, where you can switch between conversations. In other words, I want to be able to drag the views, not just swipe them.

The only thing that I seem to be able to do is to switch views (with a sliding animation) after the swipe action. In the two examples I mentioned, the views are actually dragged, i.e. the animation shows while moving your finger on the screen.

I've been going through the Calendar source, but the classes involved are so huge, I can't make head nor tail of it.

Has anyone done something like this, or is there any (relatively concise) source available somewhere?

Cheers.

+1  A: 

I need something like this too, I'd be really interested in any answer about how to do this.

I guess this is a kind of bump =x

Edit : Obviously the answer is somewhere around here : Calendar

The class "ContinueScroll" extending Runnable called in the "doFling" method seems to be the key, now we should try to understand how it works and how to use it ^^

Edit again : well, actually the ContinueScroll seems to be used by the Month view to vertical scroll, the answer must be elsewhere ...

Random