android使用分页库如何删除特定项

android使用分页库如何删除特定项,android,Android,我的android应用程序显示用户列表。我使用分页库,但从该列表中动态添加或删除用户 所以我从列表中删除了特定的项。它的show me livedata是不可变的 无法编辑该列表。尝试从实际响应列表中删除,并使用该列表更新MutableLiveData //This is your actual response list responseList.remove(position) //Well this is your liveData liveData.value = responseLi

我的android应用程序显示用户列表。我使用分页库,但从该列表中动态添加或删除用户

所以我从列表中删除了特定的项。它的show me livedata是不可变的
无法编辑该列表。

尝试从实际响应列表中删除,并使用该列表更新MutableLiveData

//This is your actual response list
responseList.remove(position)

//Well this is your liveData
liveData.value = responseList

我只需要更新那个特定的位置。所以我使用谷歌android开发者网站上的RoomDB。