Skip to content

Instantly share code, notes, and snippets.

@alan-rodriguez
Created October 18, 2017 22:31
Show Gist options
  • Save alan-rodriguez/0359126fcf08f7f61163f0143f7ca30a to your computer and use it in GitHub Desktop.
Save alan-rodriguez/0359126fcf08f7f61163f0143f7ca30a to your computer and use it in GitHub Desktop.
Kotlin Code Jam Exercise

Kotlin Code Jam

If you're familiar with Material Design, you've probably seen Chris Banes's Cheesesquare sample app. It illustrates the implementation of basic Material Design concepts using Material Components for Android (formerly known as the Design Support Library).

Convert Cheesesquare to Kotlin

Download Android Studio 3.0 and use the wizard to create a new Android project. Be sure to select "Include Kotlin Support"! Then try to port the Cheesesquare app to Kotlin. I suggest trying to do so from scratch on your own, but you can use Android Studio to convert Java code to Kotlin. It does not always result in the most idiomatic Kotlin, so check the output and try to make it more idiomatic.

Bonus: Use Bottom Navigation

Get rid of the Navigation Drawer and use BottomNavigationView to handle the navigation in MainActivity.

@rafayali
Copy link

👍 Hey thanks for tweeting that gist, i was looking for a way to getting my hands dirty on kotlin .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment