stepper-indicator
stepper-indicator copied to clipboard
Access info in fragments
Hi,
I made a form wizard. Each step is a different fragment. How can I get the information just entered by the user in other fragments?
Here is the code from Adapter:
override fun getItem(position: Int): Fragment {
Log.i("GETITEM: ", "$position")
when (position) {
0 -> return AddStudentStep1Fragment.newInstance("", "")
1 -> return AddStudentStep2Fragment.newInstance("", "")
2 -> return AddStudentStep3Fragment.newInstance("", "")
3 -> return AddStudentStep4Fragment.newInstance("", "")
4 -> return AddStudentStep5Fragment.newInstance("", "")
}
return InvalidStepFragment()
}