Android Studio 4.0 Tutorial - Part 5

Опубликовано: 07 Август 2020
на канале: 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  


Смотрите видео Android Studio 4.0 Tutorial - Part 5 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DJ Malone 07 Август 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,279 раз и оно понравилось 43 людям.