Events triggered in FragmentA when FragmentB is popped in android fragments -


what have

  1. i have activity mainactivity.java
  2. i have added fragment fragmenta mainactivity.java
  3. then add fragmentb mainactivity.java
  4. now when pop fragmentb land fragmenta

what trying know

  • i want know event in fragmenta triggered
  • i want trigger event in fragmenta when pop fragmentb

one way of doing use rxbus library https://github.com/anadea/rxbus. use rxbus.subscribe in fargmenta , rxbus.publish inside andother fragment


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -