简体   繁体   English

将数据从选项卡发送到 android 中的另一个选项卡

[英]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.

相关问题 如何在Android中将数据从第一个选项卡发送到第二个选项卡? - How to send data from first tab to second tab in Android? 通过使用选项卡android studio,而不是按钮的滑动视图将数据传递到另一个片段 - pass data to another fragment by swipe view with tab android studio,not button 使用ActionBar.TabListener将数据从一个选项卡传递到另一个选项卡 - Passing data from one tab to another using ActionBar.TabListener 通过在android中按Tab键传递数据 - Pass data by pressing tab in android 从1个活动向Android中的另一个活动发送2位数据 - sending 2 bits of data from 1 activity to another in android 在 android 中将数据从第一个选项卡传递到第三个选项卡活动时获取 null object 引用 - Getting null object reference when passing data from 1st tab to 3rd tab activity in android 将活动包中的捆绑包发送到其中一个“滑动”标签? - Sending bundle from Activity to one of Swipe Tab? 如何在GXT中将窗口小部件值从一个选项卡传递到另一选项卡? - How to pass widget values from one tab to another tab in GXT? 如何从另一个活动转到滑动选项卡布局中的特定选项卡 - How to go to a specific tab in a Sliding Tab Layout from another activity 如何将参数从一个选项卡传递到另一个选项卡并使用按钮更改选项卡? - How to pass a parameter from one tab to another and change the tab with a button?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM