https://kotlinlang.org logo
#android
Title
# android
o

onirutlA

05/31/2021, 7:39 AM
Hi guys i use single activity want to ask how to pass data from parent fragment to child fragment, the child fragment attached to parent fragment by tab layout got any reference without creating interface
😶 2
s

Shabinder Singh

05/31/2021, 8:04 AM
Usually data is shared using Interfaces , if you don't want to use interfaces , look into ViewModels
f

FunkyMuse

05/31/2021, 8:19 AM
Have the ViewModel scoped to the parent fragment
o

onirutlA

06/01/2021, 12:56 AM
okay thanks for the advice i'll look into it
👍 1
3 Views