What’s New in Android Architecture Components in a Nutshell

This year google added some of the features in android architecture components. I am sharing the highlights here.

Data Binding:

  1. Live class generation means no need to compile after updating xml
  2. Better error messages rather showing thousand of meaningless errors
  3. View Binding for accessing views (From AS 3.6) which is 100% compile safety and faster build time

Lifecycle:

  1. SavedState for UI bits like selections, scroll state and navigation state even for LiveData
  2. ViewModel initialisation by property delegation
  3. Use direct livedata instead of using Transformations for mapping

Workmanager:

  1. Integration with play services for pre-M support
  2. Unit testing and robolectric support
  3. Foreground service support

Room:

  1. Full text search
  2. RX return support in Room DAO interface

Paging:

  1. Better RXJava and Coroutines support

Waiting for these awesome updates with stable release.

--

--

Senior Android Engineer @Delivery Hero | Android developer | Kotlin lover | Flutter explorer | Problem Solver

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Md Ali Hossain

Senior Android Engineer @Delivery Hero | Android developer | Kotlin lover | Flutter explorer | Problem Solver