5

Your First Kotlin Android App: An App From Scratch [FREE]

 1 year ago
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 Free

Getting started with Android development begins right here. Learn about what you’ll be making in this course - a simple game called Bull’s Eye.

This 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 yourself to come up with the steps required to build the Bull’s Eye app.

Download Android Studio and setup a simple project.

Build and run the app on the virtual device you just created to see the starter app in action.

Build the basic inteface of the Bull’s Eye app using Views in Android.

Continue building the game screen and learn about working with xml in the code view of the layout designer.

Learn about the importance of using string resources for texts and how to add descriptive ids to views.

Add a button, position it and add other attributes with what you’ve learned so far.

Conclusion

1:09 Free

Get 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 Free

Get an overview of what we’ll be covering in this part and why it’s important.

Learn to access and interact with the views created in xml from inside your activity using the view binding feature.

Get introduced to some basic object-oriented programming concepts to better understand the Kotlin code you’ll be working with in the Android Activity.

Now it’s time to try to access other views from the Activity with the knowledge you’ve gained so far.

Handle 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 Free

Cover 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.

Learn about common problems you might encounter while building your apps and see how to solve them.

Conclusion

0:50 Free

Get a summary of what has been covered so far and what to expect in the next part.

Coding in Kotlin

Introduction

0:53 Free

Get an overview of what we’ll be covering in this part and why it’s important.

Get introduced to the Kotlin Standard Library and how it assists with common operations so we don’t have to reinvent the wheel.

Learn about another type of function: one that returns some data.

Learn about algorithms and write one that calculates the positive difference between the player’s selection and the target value.

Become acquainted with conditional statements by calculating the positive difference.

Learn the ropes of code refactoring. Try to rewrite the method using another algorithm with less code.

Use a Math Method

2:21 Free

Learn to use a math function provided by the Kotlin Standard Library to further simplify the code to calculate the difference.

Conclusion

1:54 Free

Get 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 2022

Android 11, Kotlin 1.4, Android Studio 4

Oct 1 2020

Android 4.4+, Kotlin 1.2, Studio 3.0.1

Mar 19 2018

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK