如何从一个活动传递到另一个数据在Android的标签布局 [英] How to pass data from one activity to another in tab layout in android

查看:140
本文介绍了如何从一个活动传递到另一个数据在Android的标签布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用中,我有一个显示所有游客和第二部分显示出运营商和第三部分的列表清单4 part.first部分是聊天的部分和第四部分标签布局控制window.the图像如下

I am using a tab layout in which i have four part.first part showing the list of all visitors and second part showing the list of operators and third part is chat part and fourth part is controlling window.the image is given below

![下面给出的图片中,你可以看到四个part.from第一个标签数据被传递给所有选项卡,并在第一个选项卡我显示,正在3秒新数据被添加到每个后更新列表list.how从第一个选项卡标签的其余部分传递数据。]

![the image given below in which you can see four part.from first tab data is passing to all tabs and in first tab i am showing the list that is being updated each after 3 seconds new data is being added to the list.how to pass data from first tab to the rest of tab.]

推荐答案

使用一个静态变量来存储数据,并使用他们彼此不同的标签页

Use one static variables to store data and use them one different tabs

这篇关于如何从一个活动传递到另一个数据在Android的标签布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆