-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove a Fragment or layout #39
Comments
Hi @RaghuManickam, |
Hi @zawadz88 I used this code in the adapter to remove the fragment public class StepperAdapter extends AbstractStepAdapter {
} please review my code and kindly provide me feedback if any |
Hi, |
Hi @zawadz88 , The exact scenario, is we have a check box in first fragment according to the selection in the first fragment I have to hide or show the second fragment dynamically. the problem is i cannot recreate the whole fragment as i have 10 edittext above the check box and it is need to filled before the check box. using this code i can remove the fragment but i am unable to notify the changes in stepper. example 👍 1->2->3->4 no 2 is removed 1->3->4 this is not notified in stepper |
Hi @RaghuManickam, You might do the following:
The solution is not complete though & hacky. E.g. the user might reach the 4th step, then go back to the first one and unselect the checkbox. This would remove the rest of the fragments probably and all the data that was stored in them. |
Hi @RaghuManickam, |
Hi @zawadz88 , Sorry I was busy in other work . sorry for the delay. I will check it and will update it . you can close this issue for now . |
Hi,
I have removed a fragment dynamically from the Stepper adapter and i used notifyDataSetChanged(); to update Stepper adapter.
But it is not reflected back to StepperLayout.
Please let me know if there is any other method to remove view from stepper layout.
Thank you
The text was updated successfully, but these errors were encountered: