This repository has been archived by the owner on Mar 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
how do i keep the toggle state active when switching between fragments #51
Comments
Hello @Testator? were you able to find a solution for this? |
@Testator , @egesamicheal i have fixed that , i made static global boolean variable as swipebutton switch and when i swipe it i save it state using this variable in shared prefrences and that's it |
@32attiya Thanks let me try it. |
@32attiya please I've struggled to achieve this could you please give me a sample code how u did,
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi thanks for the great feature...
I am trying to save the state of the button when switching between fragments. I tried sharedpreferences but it did not work.
everytime i navigate back to the fragment from another, it is in the off state. How do I keep it in the on state until i turn it off.
thanks in advance!
The text was updated successfully, but these errors were encountered: