"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


"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.



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. How can i select data onListClick


i had used Listview to display phoneno from phonebook.now i want on the
onListClick event just select the phonno and pass phone no to another
but its not working . can anyone help me . my code is below.
Thank you very much for help.

private void populateContactList() {
        // Build adapter with contact entries
        Cursor cursor = getContacts();
        String[] fields = new String[] {
       SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
R.layout.contact_entry, cursor,
                fields, new int[] {R.id.contactEntryText});

    private ListView.OnItemClickListener onListClick=new
ListView.OnItemClickListener() {
        public void onItemClick(AdapterView<?> mAdapterView, View v, int
                long id) {
            // TODO Auto-generated method stub

  // I have problem in this line to select data from listview

String callno = mContactList.getAdapter().getItem(position).toString();

Intent i=new Intent(ContactManager.this, phonebookcall.class);
            i.putExtra(abcd, callno);



2. Developing a dictionary

Dear all,
           I am currently learning to develop Android applications,
and to do this I have decided to develop a dictionary application. The
UI, and search facilities are no problem to implement, but my question
is, what is the best way to store the entries and definitions for the
dictionary? Would XML be the best approach? I would be looking to
include 500 - 1000 entries.

Thank you for your help

Angus Rose


3. Display PIDs

4. Dynamically loading a .jar file at Runtime

5. ContentProviders assistance?

6. RotateAnimation stopping after one complete rotation

7. Map view drag event