When my recyclerview gets a new item inserted using notifyItemInserted and smoothScrollToPosition, it creates a flickering/blink effect. What is causing it? I just want it to scrollDown when a new item is inserted.
mMessageList.add(messageObject);
runOnUiThread(new Runnable() {
@Override
public void run() {
mChatMessageAdapter.notifyItemInserted(mMessageList.size());
mRecyclerView.smoothScrollToPosition(mMessageList.size());
}
});