My android application have BottomNavigationBar
. It contains 5 fragments. One of its fragment contain nested fragment which is mutiple step process.
first nested fragment contain next button.Second nested fragment contain previous and next button.Third nested fragment contain previous and submit button. Each fragment have different EditText
.
After adding the values in first fragment, when i click next button it goes to second fragment. In second fragment when i click previous button it goes to first fragment again and same process applies to second and third fragment
My questions is:
1)When previous button in second fragment is clicked, i want all the values of EditText
in first fragment as it is and when again next button of first fragment is clicked, i want all the values of EditText
in second fragment as it is. Is there any way to do this?
2)I want all the EditText
values of all nested fragments when user clicked on submit button in third fragment.How to do that?