how to to send data when tab is selected or swipe?

后端 未结 2 594
感情败类
感情败类 2020-12-22 06:36

I make a simple example of tab view using fragment and pager .I want to send to send data from one fragment to another fragment when user use tab button. I will give you mor

2条回答
  •  再見小時候
    2020-12-22 07:12

    In your first fragment named Fragmentone, do something like this:

        if(callBack!=null){
         callBack.sendData(yourDataArrayList);
    }
    

    After doing this see what are you getting in log.

提交回复
热议问题