"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. Gears for Android?

I don't see it mentioned on either the Gears site or anywhere in 
Android-dom...

Is there a flavor of (Google) Gears that will work with Android's 
WebView widget and/or the Browser activity?

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!

--~--~---------~--~----~------------~-------~--~----~

2. How to understand and use a reference information (esp, class Hierarchy)

> I've got a question about reference information which is in

There are dozens upon dozens of sample activities in the ApiDemos that
come with the SDK, along with a few other sample applications that ship
with the SDK.

There are dozens upon dozens of tutorials and other bits of sample code on
anddev.org.

There is a dozen or more blogs with dozens of tutorial/sample code posts
found on Planet Android:

http://www.planetandroid.com/

There are three books currently in print and more in "beta" status --
search "android development" or "android programming" in Amazon, or visit
my Android Programming Knol:

http://knol.google.com/k/mark-murphy/android-programming

And, if there are specific things you want to do that are not covered by
any of those resources, ask away in this group, and somebody may be able
to lend a hand!

--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!



--~--~---------~--~----~------------~-------~--~----~

3. How to understand and use a reference information (esp, class Hierarchy)

4. opengl game: fallball

5. EventHandler errors?

6. Drawable in XML referencing other drawables by state.

7. How to make my Form b transparent/Translucent background???