I know the Android developer articles about Android Navigation:
https://developer.android.com/guide/navigation/navigation-pass-data
and
https://developer.android.com/guide/navigation/navigation-getting-started
Neither of the articles describes how to set the values of the arguments defined in the NavGraph.xml in the source fragment and how to retrieve them in the destination fragment? Could you give me a hint?
I also know the method Navigation.createOnClickListener(int ID, Bundle args) to set an OnClickListener to a button to navigate to a different destination. But the bundle args isn't the same type of arguments I defined in NavGraph.xml. Isn't it?