[英]sending data from tab to another tab in android
i have 3 tab ( History, Upload, smth) in the "history" tab i have a listview that have data, i want from my "upload" tab where i have an edit text and a button, when i press the button i want the listview,in my "history" tab, to be updated with what i wrote in the edittext.我在“历史记录”选项卡中有 3 个选项卡(历史记录、上传、smth)我有一个包含数据的列表视图,我想从我的“上传”选项卡中获得一个编辑文本和一个按钮,当我按下我想要的按钮时列表视图,在我的“历史”选项卡中,用我在编辑文本中写的内容进行更新。
I use SharedPreferences.我使用 SharedPreferences。 Save it to SharedPreferences in the one tab, retrieve from SharedPreferences in the other.
将其保存到一个选项卡中的 SharedPreferences 中,从另一个选项卡中的 SharedPreferences 中检索。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.