开发者

How to change Text in EditTexts in other tabs

开发者 https://www.devze.com 2023-03-22 13:32 出处:网络
Afternoon guys, my problem is: I have a main tab that contain a \'Search\' button, when it\'s pressed it should load data from the database (which is OK) and apply it to all the tabs (here\'s the prob

Afternoon guys, my problem is: I have a main tab that contain a 'Search' button, when it's pressed it should load data from the database (which is OK) and apply it to all the tabs (here's the problem)

How an i supposed to do this, is it possible?

If it's not possible, is there any way to pass info trought tabs? Like the customer ID so i could search his info whe开发者_如何学Gonever the tab changes?

Thx


Ye is possible. Save the content in one global variable and use it in the next tab. In your case if it is string save declare one private/public string variable outside the tabs, when is needed assign data to the string, and use it in the same in the next tabs or whatever you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消