"Swipe" to next screen

by Eddie Ringle » Tue, 20 Apr 2010 20:12:06 GMT


Sponsored Links
 If you look at the Google News & Weather app, you can "swipe" over to the
next page. Anyone know how this is done?
I'm suspecting that it is all one activity, the tabs at the top are a custom
TabView, and it works similar to that?

Eddie Ringle
ed...@eringle.net
 http://eddieringle.com/ 

--



"Swipe" to next screen

by patbenatar » Wed, 21 Apr 2010 03:26:42 GMT


 I would assume this is done by having the Views you'd like the user to
be able to switch between with a fling of the finger all contained
within one Activity and in that Activity you can listen for
MotionEvents on the currently displaying View. When you detect the
event you're looking for (a swipe, in this case.. although I don't
know how exactly to detect certain gestures) you can use an animation
(Google for "android animation") to push the current View off screen,
replacing it with the next one.

I have seen this tutorial posted on this group before regarding this
topic:  http://whyandroid.com/android/174-flipping-your-views.html  ... 
I have not tried it, however.

-Nick






>


Sponsored Links


"Swipe" to next screen

by abisai rangel » Wed, 21 Apr 2010 04:39:29 GMT


 New HP Slate Photos here ----> Website with
photos< http://bizoppoffer.com/x/0/1320/6428/> ;





> >



"Swipe" to next screen

by Eddie Ringle » Wed, 21 Apr 2010 18:14:41 GMT


 Okay, thanks. Just wanted a second opinion.




> >



Other Threads

1. Who wants to buy ..... XD

Mareeeeeeeee...



Salam
Dzikki 
k...@tux.or.id

-- 
"Indonesian Android Community [id-android]" 

2. DetikInet : Produsen BlackBerry 'Provokasi' Mahasiswa UI

Berharap Google Android provokasi mahasiswa ITS, hehehe

2010/4/16 Mazadi <adiandr...@gmail.com>

> 

3. Spica 2.1 official (DX) sudah tersedia.

4. Flinge and LongPress Drag

5. Location listener called multiple times

6. Plz need Help

7. Pindah memopad dari BB + lock setting Androi