Skip to Content
Android Studio 4.2 Development Essentials - Kotlin Edition
book

Android Studio 4.2 Development Essentials - Kotlin Edition

by Neil Smyth
August 2021
Intermediate to advanced
804 pages
23h 25m
English
Packt Publishing
Content preview from Android Studio 4.2 Development Essentials - Kotlin Edition

18. An Overview of Android View Binding

An important part of developing Android apps involves the interaction between the code and the views that make up the user interface layouts. This chapter will look at the options available for gaining access to layout views in code with a particular emphasis on an option known as view binding. Once the basics of view bindings have been covered, the chapter will outline the changes necessary to convert the AndroidSample project to use this approach.

18.1 Find View by Id and Synthetic Properties

As outlined in the chapter entitled “The Anatomy of an Android Application”, all of the resources that make up an application are compiled into a class named R. Amongst those resources are those that define layouts. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android Studio 4.1 Development Essentials – Kotlin Edition

Android Studio 4.1 Development Essentials – Kotlin Edition

Neil Smyth

Publisher Resources

ISBN: 9781803231549Supplemental Content