I have a RecyclerView (rvRoundNumbers) that I update using the following code:
(this.rvRoundNumbers.GetAdapter() as RoundNumbersAdapter).RoundNumbers.Add(this.rvRoundNumbers.GetAdapter().ItemCount + 1);
this.rvRoundNumbers.GetAdapter().NotifyItemInserted(this.rvRoundNumbers.GetAdapter().ItemCount - 1);
I have tried debugging this on my Surface Duo, the Surface Duo emulator, and an emulator in Visual Studio 2019. When using my Surface Duo & the Surface Duo emulator, it works fine (the RecyclerView is updated & I see the new data), but the emulator does not seem to update the RecyclerView (it does not display the added item). Is this a problem with the emulator? Is there some difference in Surface Duo that would cause it to work differently for this? Any help would be appreciated, thanks.