Android Studio 4.0 Tutorial - Part 5

Published: 07 August 2020
on channel: DJ Malone
3,279
43

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  


Watch video Android Studio 4.0 Tutorial - Part 5 online without registration, duration hours minute second in high quality. This video was added by user DJ Malone 07 August 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,279 once and liked it 43 people.