I need help with my fragment again :) I have created a listener so that I can send data from the fragment to the Activity that are hosting the fragment.
The listener can return 3 values:
- 0: no data has been changed in the form within the fragment
- 1: Data has been changed
- 2: Error in the data in the fragment
So here I my challenge: I need to disable swiping to the any other tab when there is an error(listener has returned 2) on the tab that the users in on. Next, I need to ask the user if they want to save the data if the if the listener has returned 1 before swiping to the next tab.
Can someone help me out? It shouldn't take many minutes for a skilled programmer I guess :)
I will need the help within the next couple of hours and I propose that we do it as a Teamviewer session.
6 freelancers are bidding on average $37 for this job
Hi Sir, I am just sharing a simple solution for this [url removed, login to view] can use a static variable in the main [url removed, login to view] you can set the values of that variables from any [url removed, login to view] when swiping to next fragment (on load More