Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб Android Tutorial 2019 #6: Fragments as Views | MVVM | NO MORE findViewById()!!! в хорошем качестве

Android Tutorial 2019 #6: Fragments as Views | MVVM | NO MORE findViewById()!!! 6 лет назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



Android Tutorial 2019 #6: Fragments as Views | MVVM | NO MORE findViewById()!!!

Master OOP languages with tutorials from someone who actually cares if you understand how to write beautiful code: Java Desktop Programming w/ JavaFX (Intermediate) - https://skl.sh/31pzCa1 Complete Beginner Introduction To Java Programming (Beginner - Intermediate) - https://skl.sh/3fZbjos Android Apps With Kotlin & Android Studio (Beginner) - https://skl.sh/2ZU6ZT9 Material Design Android Programming w/ Kotlin (Intermediate) - https://skl.sh/2OrwrYZ All the above courses are available for 2.99 a month via a youtube subscription to this channel too!   / rkay301     / wiseassblog     / wiseass301   rkay301.medium.com/follow In this part of the tutorial, we build the View in our Model-View-ViewModel architecture. Now, one approach is to use Data binding, but for several reasons I prefer to use Kotlin Synthetic Properties for view binding logic instead. It is super easy to set up, and it completely removes findViewById() calls. Timestamps: 0:34 Considerations for different styles of MVVM 1:43 Demonstration of different ViewModel styles in code 3:08 Configuring Gradle for Kotlin Synthetic Properties 4:23 Setting up our starting point 5:15 Coding the Fragment 6:00 Inflating a specific layout in onCreateView() 7:26 Adding Kotlin Synthetic Properties to simplify View Binding and remove findViewById() 9:04 Assigning our ViewModel using ViewModelProviders.of() 11:13 Starting the background animation in the View using AnimationDrawable 13:18 Adding onClickListener to our View using Kotlin Synthetic Properties and Lambda Expressions 19:07 How to bind our Fragment's UI/layout to our ViewModel by observing our LiveData fields Repository link: https://github.com/BracketCove/Jetpac... MVVM Article:   / mvvm-on-android-kinda-awkward-tbh   Follow the wiseAss Community:   / wiseassbrand     / wiseassblog     / wiseass301   http://wiseassblog.com/   / ryan-kay-808388114   Support wiseAss here: https://www.paypal.me/ryanmkay

Comments