如何通过标签传递数据?标签、数据

2023-09-07 02:46:49 作者:情话喂你

我有三个选项卡..个人信息,个人资料信息和FinalStep ... 首先,我需要在一个选项卡活动使用一个按钮移动到另一个选项卡.. 怎么办呢?

I have three tabs.. Personal info,profile info and FinalStep... First of all i need to move to another tab using a button in one tab activity.. how to do it?

其次是如何将数据保存在这些选项卡...因为我有一个包含最终报名按钮FinalStep选项卡...所以我需要从其他选项卡获得的数据也(个人和个人资料) 怎么办呢?

Secondly how to save data in these tabs... as i have a FinalStep tab which contains the final registration button...so i need to obtain data from the other tabs also(personal and profile) How to do it?

推荐答案

我一直保存数据作为TabHost活动的一个公共变量。您可以通过的getParent()来访问它。

I always save data as a public variable in the TabHost activity. You can access it via getParent().