n00b question please help!

Quickly share your Android Code Snippets here...

n00b question please help!

Postby JonnySnip3r » Tue May 12, 2009 7:45 am

hey guys can someone help me with this n00b question?

if i have the main design named main.xml and another named example.xml

and if i have a button named "Click Me" how can i have it that when the user selects the "Click Me" it will take them to example.xml. Im a vb designer lol if i was to achieve this in VB it would be Form2.show hopes its as simple haha


thanks :)
JonnySnip3r
Developer
Developer
 
Posts: 30
Joined: Wed Apr 08, 2009 1:23 pm

Top

Postby SlumberMachine » Mon May 18, 2009 7:59 pm

I'm pretty sure you could control this through:

Code: Select all
setContentView(R.layout.main);


But I also read about the "ViewFlipper", here is a good article on it:

ViewFlipper Tutorial

Hope it helps!
SlumberMachine
Developer
Developer
 
Posts: 39
Joined: Tue Feb 24, 2009 9:00 pm

Postby JonnySnip3r » Mon May 18, 2009 10:44 pm

Thanks for the reply dude :) nice tutorial also :)
JonnySnip3r
Developer
Developer
 
Posts: 30
Joined: Wed Apr 08, 2009 1:23 pm

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 3 guests