Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
5 декабря 2020 г. 12:00:06
00:07:29
Яндекс.Метрика