Title says it all, go to YouTube.com/DanielMalone for the latest August 2020 tutorial series on Android Studio covering Kotlin. We're in the process of building a grocery and restaurant delivery Android app and could use your help so go ahead and install Android Studio and begin watching. Write a comment when help is needed.
Create your first Android app using Android Studio 3.6 and Kotlin with my new tutorial on YouTube. The series will continue to progress over the coming months. Feedback and comments welcome. View here.
Coding Challenge is a weekly quest to find the best solution to code an Android app. Read the challenge on Sunday at 9am Central and my solution will be revealed Saturday at 9am Central. Give it your best! DanielMalone.com Building an app with lists can be hard but they are an essential piece of nearly […]
For apps that integrate personal information, it's important to let the user view and edit their profile. In this tutorial, we'll create a profile screen for a given user using ConstraintLayout, Kotlin and Android Studio. Ready? Let's begin! Create a new Android Studio project, specifying Basic Activity as a project type. Next, confirm that we're […]
In Java, we had to often make classes for our data models. A Kotlin equivalent would be something like this: But now in Kotlin we have data classes, like this: We can create it from MainActivity.kt with this: Accessing data is easy: No need for setFirstName, setLastName or getAge. Simply call person.firstName, person.age, etc. A […]
Fetching the longitude and latitude on Android devices isn't hard. In this tutorial we'll get the GPS location of our Android phone, tablet or emulator. Let's begin! This tutorial uses Kotlin, the preferred language of Google and myself. Open AndroidManifest.xml (inside the app -> manifest folder), then add the required permission for getting the location. […]
Making rounded corners to a Button widget can add a nice touch to your UI. Fortunately, rounded corners aren't that hard to make. Let's begin! Right click on the drawable folder and select New -> Drawabe resource folder. Then name the drawable image custom_rounded_corners. Write the following code into the editor, then open the Preview […]
Creating a RecyclerView in Kotlin isn't that hard. With some guidance, and a little effort, you too can create a RecyclerView. In this tutorial, we'll use ConstraintLayout, Kotlin and Android Studio to build it. First, open Android Studio and create a new project. Then select the following. Then select Kotlin and androidx, then hit finish. […]
Old way: New way: This is possible because of Kotlin synthetic imports. Just type the TextView's id, that's it. Just make sure the TextView has an ID that matches the Kotlin code. For clarity, here is the Kotlin import: This is another way Kotlin allows developers to do more when less code. I've used Kotlin […]