Data Sharing between Fragments and Activity in Android

后端 未结 3 491

Ive asked a similar question before and didn\'t get an answer and seems many other ppl are searching for an answer. So I am posting this question to hopefully get a clear an

3条回答
  •  孤独总比滥情好
    2020-11-30 17:35

    You can pass data between fragments in two ways,

    First, you can do it by using setArguments(...) and getArguments(....)

    Second,you can do it using Call back

提交回复
热议问题