Prior to data binding, Android activities managed data states on their own. In this video, learn how data was represented in layouts using the old method.
- So before we jump into using data binding, … let's start by taking a look … at one of the typical legacy ways … of displaying application data in an Android layout. … Now, this example should look very familiar … if you have any experience building Android apps. … So in my ExerciseFiles, … I'm going to drag the start version onto Android studio. … All right. … And you might have to go through … a great old sync process … to, you know, get things up to date. … So with that complete. … And what I'm going to do … is in my layout section, … before we look at any code, … I'm going to open up the layout for the main activity. … And if I scroll down, … you can see that I have some text views … and these text views are going to hold data … for some weather conditions. … Right? … So we have the current temperature … and then we have the current conditions, … then this is going to be the value. … And we scroll down, … here's the windshield and so on. … Okay. … So if we open the code for this activity, …
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: Doing things the old way