multiple layouts for my app

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

multiple layouts for my app

Postby aneuryzma » Sun Jan 17, 2010 3:46 pm

hi,

I want to switch between different layouts in my app: for example I want to pass from:

- a layout with a button on the button

to

- a layout with 2 buttons on the top and an editField on the bottom.

I was wondering how to build the xml file for my app. Should I include only the first layout and create the second one dynamically ?

Or cain I prepare more than one xml file, for each page of my app ?

thanks
aneuryzma
Developer
Developer
 
Posts: 28
Joined: Wed Jan 06, 2010 10:46 am

Top

Re: multiple layouts for my app

Postby kakalot » Mon Jan 18, 2010 7:39 am

aneuryzma wrote:hi,

I want to switch between different layouts in my app: for example I want to pass from:

- a layout with a button on the button

to

- a layout with 2 buttons on the top and an editField on the bottom.

I was wondering how to build the xml file for my app. Should I include only the first layout and create the second one dynamically ?

Or cain I prepare more than one xml file, for each page of my app ?

thanks


You can use ViewFlipper.
Link: http://www.warriorpoint.com/blog/2009/0 ... ctivities/
Or: http://www.warriorpoint.com/blog/2009/0 ... ewflipper/
kakalot
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Jan 18, 2010 7:35 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests