Kotlin Synthetic (Deprecated) - Migrate to View Binding | Android Studio Tutorial
In Kotlin 1.4.20-M2 JetBrains deprecated Kotlin Android Extensions compiler plugin. That plugin contains:
* Synthetics - let you replace calls to findViewById with kotlinx.android.synthetic bindings.
* Parcelize allows you to remove boilerplate and easily create Parcelables through the @Parcelize annotation.
Best alternative for Kotlin Synthetic is View Binding. View Binding is the recommendation for view lookup as well as binding, but it does add a bit of overhead when compared to Android Kotlin Extensions.
Compared to Kotlin Extensions, it adds compile time checking of view lookups and type safety.
In this video I'm going to show you how to easily migrate to View Binding and use it in your Activities and Fragments.
Timestamps:
0:00 - Introduction
1:42 - How it was before
3:46 - Migrate to View Binding - Fragments
5:57 - Migrate to View Binding - Activities
🏆 My Courses:
(GET 2 MONTHS MEMBERSHIP FOR FREE)
https://www.skillshare.com/r/user/stevdza-san
OR
https://www.udemy.com/user/432ccf97-0b71-49ed-bb6f-2fe606116148/
Видео Kotlin Synthetic (Deprecated) - Migrate to View Binding | Android Studio Tutorial канала Stevdza-San
* Synthetics - let you replace calls to findViewById with kotlinx.android.synthetic bindings.
* Parcelize allows you to remove boilerplate and easily create Parcelables through the @Parcelize annotation.
Best alternative for Kotlin Synthetic is View Binding. View Binding is the recommendation for view lookup as well as binding, but it does add a bit of overhead when compared to Android Kotlin Extensions.
Compared to Kotlin Extensions, it adds compile time checking of view lookups and type safety.
In this video I'm going to show you how to easily migrate to View Binding and use it in your Activities and Fragments.
Timestamps:
0:00 - Introduction
1:42 - How it was before
3:46 - Migrate to View Binding - Fragments
5:57 - Migrate to View Binding - Activities
🏆 My Courses:
(GET 2 MONTHS MEMBERSHIP FOR FREE)
https://www.skillshare.com/r/user/stevdza-san
OR
https://www.udemy.com/user/432ccf97-0b71-49ed-bb6f-2fe606116148/
Видео Kotlin Synthetic (Deprecated) - Migrate to View Binding | Android Studio Tutorial канала Stevdza-San
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
FindViewByID - KotlinX Extensions or ViewBinding - ways to access your UI elementsKotlin Flows in a NutshellView Binding vs Data Binding - Explained | Android DevelopmentViewModel Explained - Android Architecture Component | TutorialConstraintLayout deep dive (Android Dev Summit '18)How To Never Be Boring In ConversationDesign Custom EditText - Android Studio TutorialFormer FBI Agent Explains How to Read Body Language | Tradecraft | WIREDAndroid ViewBinding in 8 MinutesView Binding - Getting Started + Differences - Android Studio TutorialThe Basics - Kotlin CoroutinesAndroid Jetpack: Replace findViewById with view bindingBuild A Simple Android App With KotlinCoroutine Scopes - Kotlin Coroutines[fix] The 'kotlin-android-extensions' Gradle plugin is deprecatedViewPager2 with Navigation Component - Onboarding Screens | Android Studio TutorialAndroid ViewBinding vs Kotlin Synthetics - Deprecation of Android Kotlin Extensions Gradle pluginSafe Args with Navigation Component - Android Studio TutorialLiveData Explained - Android Architecture Component | TutorialROOM Database - #1 Create Database Schema | Android Studio Tutorial