alexa

Navigation.findNavController() in Fragment does not work properly in android ?

Navigation.findNavController() in Fragment does not work properly in android ?

findNavController(requireActivity()) .navigate(R.id.action_loginFragment_to_garageFragment)

use this code of line, I think it is helpful for you

Edit : If you are using it in fragment then,

 Navigation.findNavController(getView()).navigate(R.id.action_loginFragment_to_garageFragment)

314 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online

Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry