Passing views to a second fragment screen does not display them correctly
-
I am getting an an error when I try to display 2 input views. They are captured in one fragment screen and then I try to display them on a second fragment screen. The navigation works but they display as resources?... i do not even know what it is called. This is the setOnClickListener that calls up that screen. I suspect it has something to go with safeArgs
binding.buttonConfirm.setOnClickListener{
val username = binding.editTextUsername.toString()
val password = binding.editTextPassword.toString()
val action = LoginFragmentDirections.actionLoginFragmentToWelcomeFragment(username, password) findNavController().navigate(action)
} -
I am getting an an error when I try to display 2 input views. They are captured in one fragment screen and then I try to display them on a second fragment screen. The navigation works but they display as resources?... i do not even know what it is called. This is the setOnClickListener that calls up that screen. I suspect it has something to go with safeArgs
binding.buttonConfirm.setOnClickListener{
val username = binding.editTextUsername.toString()
val password = binding.editTextPassword.toString()
val action = LoginFragmentDirections.actionLoginFragmentToWelcomeFragment(username, password) findNavController().navigate(action)
}