"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. Need Help..DHD kerendam air

Dear friends id-android... Hari ini saya lg kurang beruntung, td pagi
rumah kebanjiran krn ada saluran yg tersumbat akibatnya air hujan
tertampung di halaman belakang dan masuk hingga ke kamar  tau2 DHD
kesayangan yg lagi ditaruh di lantai udah kerendam banjir. Namun DHD
masih dalam kondisi nyala ,kemudian saya matikan . Hingga beberapa jam
kemudian saya hidupkan lagi, fungsi telpon dan lain2 berjalan normal.
Namun ada tanda semacam layar berwarna terang di bagian tepi. Saya
tidak tau ini apakah karena korsleting atau ada air di bagian
permukaan lcd nya.

Yang ingin saya tanyakan,apakah ada rekan2 yg pernah mengalami nasib
yg sama. Dan bagaimanakah saya menanganinya. Untuk saat ini yg bs saya
lakukan hanya mematikan dhd tsb kemudian dipendam di dalam beras.  Oh
ya dhd ini bergaransi resmi, kira2 kalau memang rusak lcdnya apakah
bisa diklaim garansi? Bila tidak bisa kira2 berapa biaya penggantian
lcd tersebut.

Please, mohon bantuannya..padahal saya baru beberapa hari memakainya
dan DhD ini sungguh..hiks:(

Regards,
Hendra Santoso

-- 
Sent from my mobile device

Regards,
Hendra Santoso

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

2. Paid app with more installs than downloads

One of my paid apps is showing one more installation than downloads.
How can that be?

It uses license validation.

Serge

-- 
.

3. Java layer on Android SDK supports connection through IPv6 link local address???

4. reload a class containing a mapView with onResume() make a crash

5. porting android application on iphone

6. Gah! Deleted my Gmail Inbox on google! How to recover emails on Android?

7. Why porting takes so long?