Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about mutablelivedata

Read more about mutablelivedata

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - mutablelivedata

How to prepend list in kotlin

Hey I want to prepend item in list in kotlin. I am trying to add item but unfortunately, I am getting error, can someone guide me how to do that. val prepareMutableLiveData: MutableLiveData<List<...
test-img

Vivek Modi

android

kotlin

android-livedata

mutablelivedata

Votes: 0

Answers: 1

Latest Answer

Since conversationCount is already a List and your live data is also a list i.e MutableLiveData<List<ConversationCount>> you can simply use the code below . prepareMutableLiveData.value = ...
test-img

ADM

How to make a view disappear in time

I have a fragment that starts after a list item is clicked to display details about the item. Depending on the item I want a view inside the details fragment to either show or not show. I'm trying t...
test-img

brandNoob

android

android-fragments

android-view

android-livedata

mutablelivedata

Votes: 0

Answers: 1

Latest Answer

If you set your view to invisible in the Fragment's onViewCreated you can the set it to visible when needed to avoid the flashing on and off visual effect. In the case where you do want it to be shown...
test-img

Tyler V

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved