Join Joe Marini for an in-depth discussion in this video Solution: String concatenation expression, part of Android Development: Data Binding.
(upbeat music) … - [Instructor] All right, let's take a look … at how I decided to solve this particular challenge. … And keep in mind, it's not important … that your solution matches mine. … There are usually lots … of different ways to solve programming problems. … And the main point here is to learn from a given solution … and then compare it to your own. … So let's open up the simple activity here, … and I'm going to open up the sample weather data … to show you my solution. … All right so for my solution, … I decided to repurpose the convert to F function … that we created earlier in the chapter. … And I also decided to use string concatenation … directly within the layout. … Building up the results by using the addition operations … let's go over to the layout. … And let's collapse that down to have some more room. … So if we scroll down, you'll see here on line 33 … that I've got the value of the weather temperature, right? … And then I'm using string concatenation here … to add on the letter C for Celsius. …
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: Solution: String concatenation expression