61

Simplifying UI States with Kotlin Sealed Classes and DataBinding

 5 years ago
source link: https://engineering.udacity.com/simplifying-ui-states-with-kotlin-sealed-classes-and-databinding-2128112d0631?gi=7dc5a777d83b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Screens often have the same set of loading, error, empty, or loaded UI states. By modeling these as sealed classes, and creating custom data binding adapters, we’ve simplified how manage these states.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK