From the course: Android Development: Data Binding

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: String concatenation expression

Challenge: String concatenation expression - Android Tutorial

From the course: Android Development: Data Binding

Start my 1-month free trial

Challenge: String concatenation expression

(upbeat music) - [Instructor] All right, we've reached the point where we can try our first programming challenge. So in this challenge, we're going to use what we're learned about binding expressions to create some dynamic data in our layout. Now, we've already seen how to use a function as a binding source, which is how we built the data binding to convert the Celsius temperature to Fahrenheit but that takes up an entire row of space in our user interface and we can build something better than than. So let me go ahead and run the finished program. And demonstrate what we're going to build in this challenge. And so let me switch over to our emulator. There it is, okay. So when I bring up the app in the emulator and I click on the Simple Example binding button, and we go to that result, so I notice that now I have the fahrenheit temperature displayed next to the value for the Celsius temperature in these…

Contents