Skip to content

Share data between two fragments by viewmodel and interface

Notifications You must be signed in to change notification settings

darshna22/FragmentBehaviousApp

Repository files navigation

FragmentBehaviousApp

  • This project main motive to under lifecycles of two fragment when fragment one added over another fragment.
  • how to share data b/w two fragments using interface.
  • how to share data b/w two fragments using viewmodel class.
  • how to create viewmodel instace in fragment class.
  • what happens if viewmodel class instance created without using viewmodel provider
  • what happens when fragment dialog in transparent background comes over another screen/fagment.

For exact ans for interview kinly refer below link
https://github.com/darshna22/Android-Interview-ques-and-ans