Binding expressions can contain references to internal and other layout objects. In this video, learn how to use references to affect different types of layout attributes.
- [Instructor] Let's take what we've learned … about binding expressions … and update our simple example … to use some of the techniques we've seen. … So let's start by finishing the data bindings … that we haven't yet set up from the previous example. … So if we scroll down here in the simple example layout, … you can see here in the data model, … we've got temperature, conditions, wind chill. … And so here in the layout, we've already done temperature. … So let's add the others. … So here for current conditions, … let's add the conditions and that's the string. … So we can just connect that directly … and that's going to be weather.conditions. … All right. … And then there's wind chill … and wind chill is also in integers. … That's got to be converted. … So we'll do the same thing that we did before. … Let's see, String.valueOf, … and that's going to be weather.windchill. … All right, I'll close that one off. … Okay. … We can use the properties available to us … to derive new data, …
Author
Released
11/19/2020Skill Level Intermediate
Duration
Views
Related Courses
-
Android App Development: Communicating with the User
with Joe Marini1h 19m Intermediate
-
Introduction
-
What you should know1m 14s
-
Getting set up1m 37s
-
1. Overview
-
What is data binding?1m 51s
-
Doing things the old way4m 2s
-
Setting up your project1m 19s
-
-
2. Basic Data Binding
-
Create binding layout5m 13s
-
-
3. Layout Expressions
-
4. Binding to Observable Data
-
Overview of observables1m 51s
-
Binding to observables4m 49s
-
Binding to ViewModels6m 25s
-
Using binding adapters7m 19s
-
Two-way binding syntax4m 45s
-
Using converters4m 2s
-
-
Conclusion
-
Next steps1m
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Using binding expressions