Homepage
Sign in / Sign up
Google Developers

Google Developers

For Engineers, by Engineers

Featured
Transitions in the Android Support Library

Transitions in the Android Support Library

Now available back to API 14
Go to the profile of Chet Haase
Chet Haase
Sep 1
Media Playback and the must-have Android Support Library APIs

Media Playback and the must-have Android Support Library APIs

support-media-compat and beyond!
Go to the profile of Ian Lake
Ian Lake
Aug 24
Android Data Binding: Custom Setters

Android Data Binding: Custom Setters

Make Data Binding Do What You Want
Go to the profile of George Mount
George Mount
Aug 26
Real-Time Image Capture in Unity

Real-Time Image Capture in Unity

How to capture video in C# without sacrificing performance.
Go to the profile of Jeremy Cowles
Jeremy Cowles
Aug 10
Trending
Quick Settings Tiles

Quick Settings Tiles

A new surface in Android 7.0 for critical+frequent actions
Go to the profile of Ian Lake
Ian Lake
4 days ago

No More findViewById

One of the little-known features of developing an Android application with Android Studio is data binding. With it comes many excellent…features that I’ll be covering in future articles, but the most basic thing you get is elimination of findViewById. Isn’t this just a pain in the neck? There are tools available whose main job is to eliminate this small bit of code, but now there is an official way with Android Studio 1.5 and higher. First, you must edit your Application’s build.gradle file and add the following into the android block: The next thing is to change the layout file by making the outer tag <layout> instead of…
Go to the profile of George Mount
George Mount
Jun 19
Scheduling jobs like a pro with JobScheduler

Scheduling jobs like a pro with JobScheduler

Because if you’re gonna have to do it, you may as well be great at it
Go to the profile of Joanna Smith
Joanna Smith
Sep 22
Android Data Binding: Observability

Android Data Binding: Observability

Keeping the UI Up-to-Date
Go to the profile of George Mount
George Mount
Sep 22

Android Data Binding: That <include> Thing

When layouts <include> other <layout>sIn the last article you saw how easy it is to avoid using findViewById with Android Studio 1.5 and higher. This is essentially the View Holder pattern as described here: I showed how to use Android Studio to generate a class that acts as a View Holder for a single layout file, but what about included layouts? What about merged included layouts? It turns out that those are also supported, but each layout file generates a different class.
Go to the profile of George Mount
George Mount
Jun 29
All storiesAbout Google Developers