From the course: Android Development Essential Training: 3 Navigation

Unlock the full course today

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

✓ Challenge: Take my order

✓ Challenge: Take my order - Android Tutorial

From the course: Android Development Essential Training: 3 Navigation

Start my 1-month free trial

✓ Challenge: Take my order

(upbeat music) - [Instructor] Hey folks, it's time for a challenge. We're going to put your view model in live data skills to the test. Here's what you'll be implementing. It's a minimalist checkout form for olives. There are a few main elements. Buttons to increase and decrease the total quantity, a text view, which displays the current quantity, and a checkout button, which displays a Toast message with the total cost based on the selected quantity. Now let's move over to Android Studio to take a look at what you'll need to implement. First, I've created a skeleton application for you in the exercise files. Make sure you start there. In the main activity class, you have a series of onClick Listeners that are already wired up to those buttons that we saw in the checkout screen, and then you have two errors, here in line number 24 and 25. That's because these variables need to be created by you, along with the call to…

Contents