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

Android Studio 4.2 Development Essentials - Java Edition

by Neil Smyth
August 2021
Intermediate to advanced
782 pages
22h 37m
English
Packt Publishing
Content preview from Android Studio 4.2 Development Essentials - Java Edition

11. 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.

11.1 Find View by Id

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. Within the R class is ...

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 – Java Edition

Android Studio 4.1 Development Essentials – Java Edition

Neil Smyth

Publisher Resources

ISBN: 9781803238814Supplemental Content