Edit Texts in Tabs

Put your problem here if it does not fit any of the other categories.

Edit Texts in Tabs

Postby suhasmannar » Tue Jun 22, 2010 1:33 pm

Hi,

I have included an edit text in the tabhost. I have implemented dynamic tabs. The problem is that edit text used in the tabs will be same. How can i create different edit texts for each and every tab.

Please Help me?
suhasmannar
Developer
Developer
 
Posts: 28
Joined: Thu May 06, 2010 6:27 am
Location: Karnataka, India

Top

Re: Edit Texts in Tabs

Postby nicholas.hauschild » Wed Jun 23, 2010 2:23 am

You should be able to dynamically create new EditText views whenever you need one.
nicholas.hauschild
Master Developer
Master Developer
 
Posts: 310
Joined: Fri Dec 04, 2009 4:50 am

Re: Edit Texts in Tabs

Postby suhasmannar » Wed Jun 23, 2010 7:22 am

Thanks Nicholas but how do i do it. Is it possible to refer each and every edit text with different ids.
suhasmannar
Developer
Developer
 
Posts: 28
Joined: Thu May 06, 2010 6:27 am
Location: Karnataka, India

Re: Edit Texts in Tabs

Postby anarche » Wed Jun 23, 2010 7:26 am

yep, setId() when you create them.
anarche
Master Developer
Master Developer
 
Posts: 369
Joined: Sun Apr 11, 2010 5:21 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests