How can I update RecyclerView in real time?
问题 I have a list which can be updated any time by any user. The list is showed by in a RecyclerView . I want to update this list in real time so that user can get a better user experience because user need not to perform refresh several times. Now question is, how can I update this list in real time ? 回答1: With RecyclerView you can either update a single item, item range or the whole list with the adapter. You have to use RecyclerView adapter's method like adapter#notifyItem*** or adapter