Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabs & Dropdown lists

Status
Not open for further replies.

Rowse

Technical User
Dec 20, 2002
62
GB
I have an app with 3 tabs, on each tab i have 2 dropdowns which i can select.
When i press a button on tab 3 to show me what was selected in the dropdowns on the other 2 tabs, all i get is the first one in the list.

How do you get the selected dropdown from another tab?

I've tried:

final View newFileDialogInflated = View.inflate(this, R.layout.profile_page, null);
//quality

//calc
final Spinner type = (Spinner) this.findViewById(R.id.Type);
editor.putString("Type",String.valueOf(type.getSelectedItem()));

Any suggestions how to get it working?

Supplier of Asset Financial Software
Web based, and pocket pc compatible
b3computing.co.uk
 
trgraglia said:
have listeners for text changes which write to shared preferences or something of that sort which then the tab host can see.
-an answer i found on google

HTH
Dexter
 
I was trying that last night, but had no success detecting when a dropdown changed selection, will have to look and try again

Supplier of Asset Financial Software
Web based, and pocket pc compatible
b3computing.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top