Categories
Tech

Reviewed: Pixelbook Go

In 2011 I bought a Mac Mini. I thought my world was about to change when I took it out of Apple's packaging. In 2013 I bought an Acer desktop at Fry's. It marked my dabble back into Windows. In 2014 I bought an Asus desktop with a faster processor and tons of memory. In […]

Categories
Android

Coding challenge: display a list using CardViews

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 […]

Categories
Android Personal

5 Things that helped me get a $100K+ salary Android Engineer job

I made it. I'm an Android Engineer at H-E-B Digital and work on the upcoming Curbside Pickup app. It's a lot of fun and it's a lot of work. Below are some tips for making money as an Android Engineer and advice to those just starting the journey. 1. Understand grit One of the most […]

Categories
Android

Create a profile layout using ConstraintLayout

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 […]

Categories
Android

What is a Kotlin data class?

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 […]

Categories
Android

How to get GPS coordinates

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. […]

Categories
Android

How to add rounded corners to buttons

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 […]

Categories
Android

Build a RecyclerView in Kotlin

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. […]

Categories
Personal

Jason's Deli

Categories
Android

Replacing findViewById with Kotlin synthetic imports

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 […]