"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. Any ScoreLoop users out there?

I'm implementing ScoreLoop for my game.

There is a standard selection widget for the leaderboard type, which
lets you refine the scores. By default, I get:

- Global Leaderboard
- Your Country Leaderboard
- 24h Leaderboard
- search_list.nationality_iso3166_1
- search_list.nationality_iso3166_2

What on earth are the last two items? This list seems to come from
ScoreLoop, rather than being anything configurable in the xml. I only
want the first three in the list, is there anyway I can set this
somewhere?

I notice that other games that use ScoreLoop (like Jewels for example)
only have the first three items also.

Thanks.

-- 

2. OOT: curhat pengguna Telkomsel

hikss... bengong abis, cuman bisa messenger doang.
yang paling parah: gak bisa ngetwit.. :(
*bukantwitterfreak*
xixixixiii...

Adakah pejabat teras Telkomsel disini?

Enya
-- 
--sent from si Greeny--

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

3. Oom Yopie in action (gathering Android-Sony Ericsson-XL)

4. glGenTextures going crazy on actual device

5. HTC Dream saya mati :(

6. Calculate Time Elapsed

7. Random pauses with 鈥淜ey dispa tching timed out sending to <null>鈥?when closing Android S urfaceView