Really I need some serious navigation to be added to the Weather app. But there is already so much going on there, that it will be easier to learn about it on the Age Calculator. It is just a single screen, but it could be made nicer using fragments, and this will bring the navigation The full story here…
Tag: Kotlin
Age Calculator App – Data Binding
This carries on from the previous post of View Binding. So set up gradle in the same way as described there, if you have not already. And then lets get started.
Age Calculator App – View Binding
Doing the Google Kotlin training courses on Udacity – here – they’re free, why wouldn’t you. If you use View Binding, you can link the view to the code at compile time – potentially improving the performance.
Age Calculator – AutoComplete Field
I don’t want to use a calendar selector. You’re always hunting backwards and forwards for the correct month. I decided it would be better to use an AutoComplete text field. The most you ever have to do is click 3 letters, but that is only if you are born in June or July.
Weather App – Wind Direction
The obvious way to convert the wind direction into NSWE is with a nice long switch statement. But that seemed very long winded and boring – and this is my project, I am allowed to find a more interesting way. Thanks to mathsisfun.com for their excellent content on this subject.
Weather App – Kotliny Kotlin
I used IntelliJ to convert to Kotlin. It gave me the class below. While it compiles and works, it does not look like Kotlin. I would like to take the resulting code and use Kotlin’s features to make it look more like Kotlin
Weather App – Convert to Kotlin
Starting immediately, all future code needs to be in Kotlin. There is a tag in git, so I know where to go back to if it fails. My student colleague assures me it is simple to convert a Java class to Kotlin. Tomorrow’s job. Thanks to my colleague, recently a student, who inspires me with The full story here…