Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

This Week in Mobile: Making Kotlin Easier

DZone's Guide to

This Week in Mobile: Making Kotlin Easier

Did you think Kotlin needed to be any easier? If so, we've got a link for you. And lots more! Check out Android and iOS tips and projects.

· Mobile Zone ·
Free Resource

A bunch of our links for Android developers are around Kotlin, from making it easier, more testable and making it part of a serious app architecture. On the iOS side, found out more about WeakReferences in Swift 4, and realize the (almost) unlimited power of switch statements.

Android 

If you’ve been using notifyDataSetChanged() when lists change, you’re doing things wrong. This article on Android SortedList Explained will set you straight. 

The second part in the series of Kotlin Testability focuses on using the Default Factory Pattern for making your Kotlin code more testable. 

Meanwhile, Making Kotlin Easier shows how adding Anko to your project can have an impact on the simplicity of your code. 

Still on Kotlin, check out the second part of Modern Android Development With Kotlin is now available, covering MVVM architecture, the repository pattern and Android Manager Wrappers. 

Learn how to Dispose of an Observable Chain with RxJava 2 so that you can avoid memory leaks.

Another example of going from a design to a complete Android app, in the latest installment of From Design to Android.

Some projects to check out: 

  • VegaLayoutManager: A customized LayoutManager - fade and shrink the head itemView when scrolling.
  • LoadSir: Lightweight expandable library used for displaying pages like loading, error, empty, timeout.
  • linear-time-picker: Gorgeous Android Time and Date Picker library inspired by the Timely app. 
  • RxGps: Finding current location cannot be easier on Android! 

iOS 

Here’s a neat way to Animate Table View Updates, keeping the update smooth without reloading the entire table view and scrolling back to the top.

Mike Ash explains more about Swift 4 Weak References, starting with a recollection of the old implementation and an in-depth explanation into the changes made for Swift 4.

In A Funny Thing Happened On The Way to This Array, Erica Sadun explains how flexible Swift really is.

Read about The Power of Switch Statements in Swift which will show you why they can make your code way easier to read. 

Finally, here are some Sketch Assets for iOS 11 to give to the designer in your life.

Some projects to check out: 

General 

Jesse Squires talks about When Your App Is Used in Unexpected Ways.

See how Visual Thinking & UX is so important in the context of collaboration between remote workers. 

Topics:
kotlin ,ios ,android ,mobile ,mobile app development ,mobile design

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}