This course begins by downloading Android studio - make sure you watch the appropriate video depending on whether you're on Mac or Windows. Then, we'll take a tour off the Android Studio interface and see how apps are put together. You'll learn about text views, buttons, and images to build a user interface for our app, and we'll also write some code to make our apps interactive.
Then we'll move onto a practical project in which we make a temperature converter app, which converts temperatures from Fahrenheit to Celsius. You'll be able to follow, building the app, and then running it on your system.
Intended Audience
This course is intended for beginners to Android app development or anyone who wants to master coding in Kotlin.
Prerequisites
Since this is a beginner level course, there are no requirements, but any previous experience with coding would be beneficial.
Hello and welcome back. Hope you were able to design and build this little TextView, get it to run in the emulator and post an image of it in the course discussions. In this video, I'll do a quick run through of how I would have done it. Let's start with a clear screen. Here we go. First, I'll drag a TextView onto my layout and place it toward the top of the screen but centered. There we go. TextView, toward the top and center. I'll bring it down just a little bit. All right. Okay, good. Then I'm going to change the text to My Temp Converter. I'll scroll down, here's my text.
I'll say My Temp Converter. I'll select a larger font size and make it bold. Scroll down, there is my text size, I'll select 30 and then make it bold. As you can see it's moved on to the right, so I'm going to drag it back to the center. There we go. Now let's change the text color to green. So, here's my text color, select the options, scroll down. Here's my dark green, I'll select this. Okay and now I'll change the background to light orange. So, background, I'll scroll down. The option should be right here, there it is. I'll select color, scroll down. There is a light orange, okay? And there we go.
Now for the last bit I'm going to add the constraints to pin it here towards the top of the screen and centered. And I'll do that real quick from here under Constraint Widget. This looks good to me, so I'll pin it here. All right, and that looks good and close enough to the project expectations, let's take a quick look at that. There we go. This is where we set out to build and this is where we have ended up with. Maybe a little more towards the top, so I'll decrease the top constraint here from 97, I'll make it 80.
So, it's more toward the top. Okay, looks good. Let's go ahead and run this. Now here I have an option to run app and apply changes and restart activity since I already have an app running which I run before I'm getting these two options, you can just select one. I'll say apply changes and restart activity. You can see here Gradle build running. If you run into a couple of errors or things of that nature like logs coming up here, as long as the app runs, I wouldn't worry about those right now.
They might come into play later on but if the apps run at this point then I would just say that's good to go. Okay, looks like the Gradle build finished without any errors. That's good, supplying changes now. Okay, Session 'app': Changes were, there are certain changes were not apply value, initialization, blah blah blah. It's fine, I'll just select reinstall and restart app. Process 'app' is running, do you want to terminate the process 'app'?
These are the messages that I was talking about. I wouldn't worry too much about these right now, I'll just hit 'Cancel' here. Launching 'app' on pixel 2. Okay, success. Operation succeeded so let's take a look at the emulator and there it is. My Temp Converter, our app is looking good. So, that's where I'm going to end this solution video. Hope you enjoyed it and I'll see you in the next one.
Mashrur is a full-time programming instructor specializing in programming fundamentals, web application development, machine learning and cyber security. He has been a technology professional for over a decade and has degrees in Computer Science and Economics. His niche is building comprehensive career focused technology courses for students entering new, complex, and challenging fields in today's technology space.