I have a RecyclerView
that creates CardView
s from user input (via two EditTexts).
I am able to create the new Cards properly. The first
Looking at your code I see a problem with implementation of addItem
method here:
mItems.add(new ContactItem(contact));
notifyItemInserted(0);
It seems you are adding item on bottom and notify insertion on top. You should keep insertion and notification aligned in terms of position. In particular, if you want to insert on top you should change your code as follows:
mItems.add(0, new ContactItem(contact));
notifyItemInserted(0);