From the course: Programming for Non-Programmers: Android & Kotlin
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Working with variables
From the course: Programming for Non-Programmers: Android & Kotlin
Working with variables
- [Narrator] For those of you using the exercise files, you way notice a pop-up that says that the file that is on my computer doesn't exist on your computer. You can simply click through that and ignore it for this movie and for the rest of the course and you'll be fine. Now lets get some practice creating some variables. The file that I'm working in is MainActivity.kt and I have activity_main.xml opened though we're not going to be using it in this particular movie. With both of those files open, I can actually collapse the project window. I can do that by clicking on the project window tab on the left side, or I can click this little collapse button right here that hides the project window. For those of you following along without the exercise files, just create a new Android Studio project with the settings we looked at in a previous movie. So we just have an empty activity here and Kotlin support. I mentioned earlier that code runs top to bottom, and that its governed by events…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
How programming works3m 58s
-
(Locked)
Variables3m 33s
-
(Locked)
Working with variables5m
-
(Locked)
Using properties2m 53s
-
(Locked)
Connect visual objects to variables6m 39s
-
(Locked)
Enum values5m 30s
-
(Locked)
Private properties and constants4m 53s
-
(Locked)
Practical applications of variables2m 22s
-
(Locked)
Challenge: Create two variables1m 9s
-
(Locked)
Solution: Create two variables2m 41s
-
-
-
-
-
-