UI Examples that Show Multiple Views

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

UI Examples that Show Multiple Views

Postby android.developer27 » Wed Apr 01, 2009 2:21 am

I am trying to find a sample application that does exactly the kind of layout/action that Andoid's built in "Contacts" application does. I need to show a table on the first view that is clickable, and when a user clicks on a row in the table, a new view (or activity?) shows up. A user needs to be able to navigate back and forth between views.

Anybody know if the code for the "Contacts" application is available or know of an application that I can look at the code for that has a similar layout as described? I have been looking at samples under the android sdk and for tutorials on here, but haven't found what I am looking for yet. Thanks.
Posts: 2
Joined: Wed Apr 01, 2009 2:12 am


Postby iPaul Pro » Wed Apr 01, 2009 11:12 pm

Android Contacts app source:
http://android.git.kernel.org/?p=platfo ... git;a=tree

It's kind of hard to get help around here. Especially for new guys (trust me - this is my 11th post - not a single reply yet). So don't take it personal. Also, a lot of the tutorials out there are outdated, so know that you aren't alone in your inevitable frustration'oid.

Look into unsing a SimpleCursorAdapter to bind the contacts (from the database) to your list view and investigate onListItemClick for actions on clicks.

And check this out: http://www.kluit.com/blog/index.php?/ar ... Phone.html

Hope that helps. Good Luck!
iPaul Pro
Posts: 33
Joined: Sun Mar 15, 2009 9:01 pm


Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest