Can anyone suggest how to do it through firebase. means the state of the imageview is stored in the firebase. The thing to note is the imageview is on recycler view adapter.