In today's Android Studio 4.0 tutorial we'll use Jetpack's Navigation Components to wire up the transfer of data between screens. It's a Google library, widely used and highly practical.
Start by adding the necessary lines of code to each Gradle file, Module and App. Make project or Rebuild the app if necessary.
In the navigation folder under res open the Navigation Components file we're already using from Part 4 then add an Integer (or String) as the data type to be passed.
Pass the data from our RecyclerView Adapter and accept in our ProductInfo Fragment using by navArgs().
In the next part we'll continue to explore Jetpack and data transfer between Fragments and Activities.
Android documentation: https://developer.android.com/guide/n...
View code here: https://github.com/danielmalone/Andro...
Connect with me on Twitter! / danielmalone
On this page of the site you can watch the video online Android Studio 4.0 Tutorial - Part 5 with a duration of hours minute second in good quality, which was uploaded by the user DJ Malone 07 August 2020, share the link with friends and acquaintances, this video has already been watched 3,279 times on youtube and it was liked by 43 viewers. Enjoy your viewing!