Namely, you’ll use these to save and load your notes into and from shared preferences and format a note timestamp to an easily readable date.īefore diving in, spend some time learning about WindowInsets. Utils.kt: This file contains a set of utility methods you’ll use throughout the project.ui: In this folder, you’ll find the activity, fragments and adapters you’ll use to let your users view and interact with the app’s data.RWCompat.kt is a factory responsible for loading RWCompat10.kt or RWCompat11.kt, depending on the device’s Android version. Therefore, you need different implementations for specific calls. compat: Keyboard animations are only available for devices running Android 11.A note is made up of its content and the date it was created. model: This is the data object used to represent a note.You’ll see a set of subfolders and other important files: Open the Starter project in Android Studio and wait for it to synchronize. To solve this problem, you’ll build BrainDump, a note-taking app that helps you keep track of everything you need to do.įirst, take some time to understand the project structure. If you don’t want to forget any of these items you need to write them down. It’s easy to feel overwhelmed with everything you need to do in a day: Get the kids to school, stop at the grocery store, update a section on this tutorial. Starter has the skeleton of the app you’ll build, and Final gives you something to compare your code to when you’re done. You’ll find two projects inside the ZIP file. If you’re new to either, read through Beginning Android Development and Kotlin for Android: An Introduction before continuing.ĭownload the starter project by clicking the Download Materials button at the top or bottom of the tutorial. Note: This tutorial assumes you’re familiar with Android Studio and the basics of Android development.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |