有什么办法来刷新Android的标签? [英] Is there any way to refresh a tab in Android?

查看:118
本文介绍了有什么办法来刷新Android的标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个标签。当我在第一个选项卡更改值,在第二个选项卡中另一种价值应该改变取决于第一个选项卡的变化。怎么做?。请在最早的帮助?或者是有可能加载第二个选项卡一次..任何茶点机制?

I have two tabs. When I change a value in the first tab, another value in the second tab also should change depending on the change in the first tab. How to do it?. Please help at the earliest?. Or Is it possible to load the second tab once more.. any refreshment mechanism?

推荐答案

您可以使用 onResume()的功能,并添加了code加载标签在这里再次。

You can make use of onResume() function and add the code to load the tab again here.

这篇关于有什么办法来刷新Android的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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