"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. sipdroid video call over trixbox 2.8.0.4 CE?

None of these lists are for SIPDroid. Please stop cross-posting in
bulk to irrelevant mailing lists, or you will be considered a spammer.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 

2. Browser Speed Test - Android Ungguli iOS

Browser Speed Test - Android Ungguli iOS 
GOPEGO.COM | MARCH 18, 2011
http://android.gopego.com/2011/03/browser-speed-test-android-ungguli-ios 


Sebuah riset independen untuk mobile browser speed dilakukan oleh Blaze 
beberapa waktu lalu. Test ini bertujuan untuk ...

--
Shared via Pulse, an awesome news reader for iPad, iPhone and Android. Check it 
out! 


www.gopego.com
Sent from my iPhone

-- 
===============

3. Running .apk on Board

4. can not change the file in sdcard to read only mode

5. how to avoid the OOM(out of memory)?

6. Walking Sprite....

7. Howto: Run the Test cases available in framework