Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Access info in fragments #49

Open
dedraks opened this issue Mar 5, 2018 · 0 comments
Open

Access info in fragments #49

dedraks opened this issue Mar 5, 2018 · 0 comments

Comments

@dedraks
Copy link

dedraks commented Mar 5, 2018

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()
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant