Tabs with layout reuse

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

Tabs with layout reuse

Postby Rayk » Thu Dec 17, 2009 2:49 pm

Hi everybody,

I have a problem with tabs and the using of include-Element.

In a seperate xml file I have defined a form to calculate e.g. to numbers and a submit button. Now I want to use this layout for two tabs as content using the include element. This works fine.

The problem is now when I press on the second tab the submit button is calling the event method of my Acitivty but always with the button ID of the first tab and the calculation is always done for the first tab anyway if I press the submit button on the second tab.

can anybody help me please?

thanks and regards,
Oliver
Rayk
Freshman
Freshman
 
Posts: 2
Joined: Thu Dec 17, 2009 2:41 pm

Top

Postby Rayk » Thu Dec 17, 2009 4:12 pm

Does nobody has the solution? :(
Rayk
Freshman
Freshman
 
Posts: 2
Joined: Thu Dec 17, 2009 2:41 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests