Learning Android Development

5 Ways of Creating Android LiveData

Depending on need, use different ways to create LiveData

Photo by Jan Kopřiva on Unsplash

LiveData is no longer an unfamiliar term in Android development. But do you know there are different ways to create them? They differ depending on what you need.

--

--

--

Sharing iOS, Android and relevant Mobile App Development Technology and Learning

Recommended from Medium

WorkManager in Android

android workmanager

Android ImageView ScaleType Fully Illustrated

Kotlin crossinline, noinline approach

Preferred way to set clickable image icon

RxJava 2: Async task cancelation made easy in Android (in Kotlin)

How to set multiple wallpapers on Each homescreen Android | Android Customization Tricks

How to set multiple wallpapers on Each homescreen Android

Jetpack Compose with more complex Previews/ Live previews and ViewModels

Is ViewPager2 just a RecyclerView?

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
Elye

Elye

Sharing Software Development Experience, focus on Mobile. https://elye-project.medium.com/subscribe https://twitter.com/elye_project

More from Medium

Context in Android Dev: What it is, Why is it Needed and Which One to Use

Complete guide to LiveData and Flow: Answering — Why, Where, When, and Which.

BeeHive View in Android