Does anyone know how to change a ToggleButton
in another fragment (Using TabLayout
)? I have a ToggleButton on my main Fragment
and when I change that button, I would like to change the button in the other Fragment
.
Asked
Active
Viewed 53 times
0

Benjamin Owen
- 608
- 2
- 10
- 28
-
1You could use `LocalBroadCastManager`. – Paresh P. Dec 06 '15 at 16:49
-
Would I create an `Intent` to start the `Fragment` I want updated, then broadcast it using `LocalBroasdcastManager.sendBroadcast(intent);`? – Benjamin Owen Dec 06 '15 at 16:51
-
1This will help :- http://stackoverflow.com/questions/8802157/how-to-use-localbroadcastmanager – Paresh P. Dec 06 '15 at 16:53