Your First Kotlin Android App: An App From Scratch [FREE]
source link: https://www.raywenderlich.com/30498263-your-first-kotlin-android-app-an-app-from-scratch
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Get Started with Android Development
Introduction
3:16 FreeGetting started with Android development begins right here. Learn about what you’ll be making in this course - a simple game called Bull’s Eye.
Learn About Kotlin & Android
3:24 FreeThis episode would introduce the students into the two main components of the course: Kotlin and Android. Get a general introduction to Kotlin and a brief overview of the Android OS.
Challenge: Plan the App
3:27 FreeChallenge yourself to come up with the steps required to build the Bull’s Eye app.
Setup a Project in Android Studio
6:41 FreeDownload Android Studio and setup a simple project.
Build & Run the App
5:25 FreeBuild and run the app on the virtual device you just created to see the starter app in action.
Build UI with Views
8:18 FreeBuild the basic inteface of the Bull’s Eye app using Views in Android.
Continue Building the UI
6:12 FreeContinue building the game screen and learn about working with xml in the code view of the layout designer.
Add String Resource & ID
7:54 FreeLearn about the importance of using string resources for texts and how to add descriptive ids to views.
Challenge: Add & Position a Button
3:34 FreeAdd a button, position it and add other attributes with what you’ve learned so far.
Conclusion
1:09 FreeGet a summary of what has been covered so far and what to expect in the next part.
Work with an Android Activity
Introduction
0:33 FreeGet an overview of what we’ll be covering in this part and why it’s important.
Access Views Using View Binding
7:55 FreeLearn to access and interact with the views created in xml from inside your activity using the view binding feature.
Learn About Instances, Data & Functions
7:48 FreeGet introduced to some basic object-oriented programming concepts to better understand the Kotlin code you’ll be working with in the Android Activity.
Challenge: Access Other Views
1:32 FreeNow it’s time to try to access other views from the Activity with the knowledge you’ve gained so far.
Handle Interactions
9:10 FreeHandle events triggered when users interact with your app. An Alert Dialog will display when the “Hit me” button is clicked.
Work with Strings
7:48 FreeCover the process of working with the “string” data type which stores a sequence of characters and display the value of the seekbar in the Alert Dialog.
Solve Common Problems
5:41 FreeLearn about common problems you might encounter while building your apps and see how to solve them.
Conclusion
0:50 FreeGet a summary of what has been covered so far and what to expect in the next part.
Coding in Kotlin
Introduction
0:53 FreeGet an overview of what we’ll be covering in this part and why it’s important.
Understand Kotlin's Standard Library
5:32 FreeGet introduced to the Kotlin Standard Library and how it assists with common operations so we don’t have to reinvent the wheel.
Write Another Type of Function
4:10 FreeLearn about another type of function: one that returns some data.
Challenge: Calculate the Difference
3:41 FreeLearn about algorithms and write one that calculates the positive difference between the player’s selection and the target value.
Use Conditional Statements
7:54 FreeBecome acquainted with conditional statements by calculating the positive difference.
Challenge: Rewrite the Code
2:24 FreeLearn the ropes of code refactoring. Try to rewrite the method using another algorithm with less code.
Use a Math Method
2:21 FreeLearn to use a math function provided by the Kotlin Standard Library to further simplify the code to calculate the difference.
Conclusion
1:54 FreeGet a refresher of what was covered in this course and what to expect in the next course in your Android development journey.
Version history
Android 12, Kotlin 1.6, Android Studio Bumblebee | 2021.1.1 (Selected)
Jul 5 2022Android 11, Kotlin 1.4, Android Studio 4
Oct 1 2020Android 4.4+, Kotlin 1.2, Studio 3.0.1
Mar 19 2018Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK