/kotlin-practice

Practice Kotlin. Udacity's Developing Android Apps with Kotlin course

Primary LanguageKotlin

kotlin-practice

Toy apps for the Developing Android Apps with Kotlin course on Udacity.

Learn to architect and develop Android apps in the Kotlin programming language using industry-proven tools and libraries. Create apps in less time, writing less code, with fewer errors.

Dice Roller is a simple app that rolls a six sided die.

The AboutMe app is a demo app that shows information about a person.

  • Name
  • Settable Nickname
  • An image
  • Scrollable information

This app demonstrates the following views and techniques:

  • LinearLayout
  • TextView
  • EditText
  • ImageView
  • ScrollView
  • Setting multiple click handlers programmatically
  • Using data binding for views to improve perforkance and eliminate findViewById

The ColorMyViews app is a demo game app that lets users click to color boxes and the background.

This app demonstrates the following views and techniques:

  • Using the Layout Editor to create layout
  • In the Layout Editor: Creating chains, aligning objects, using baseline alignment for labels

The Android Trivia application is an application that asks the user trivia questions about Android development. It makes use of the Navigation component within Jetpack to move the user between different screens. Each screen is implemented as a Fragment. The app navigates using buttons, the Action Bar, and the Navigation Drawer. Since students haven't yet learned about saving data or the Android lifecycle, it tries to eliminate bugs caused by configuration changes.

DessertPusher is a game about making desserts. Press the button, make a dessert, earn the big bucks.

This app is for exploring the Activity Lifecycle callback methods and the Lifecycle object.

Guess It is a word guessing app you can play with one or more friends. To play, hold the device in landscape, facing away from you with your thumbs on the Skip and Got It buttons. Your friends can then give you clues to help you guess the word.

If you get the word right, press Got It. If you're stuck, press Skip. The game runs for a minute and then shows you your score.

The SleepQualityTracker app is a demo app that helps you collect information about your sleep.

  • Start time
  • End time
  • Quality
  • Time slept

This app demonstrates the following views and techniques:

  • Room database
  • DAO
  • Coroutines

It also uses and builds on the following techniques from previous lessons:

  • Transformation map
  • Data Binding in XML files
  • ViewModel Factory
  • Using Backing Properties to protect MutableLiveData
  • Observable state LiveData variables to trigger navigation