Skip to content Skip to sidebar Skip to footer

Recyclerview Is Not Showing

I have Spinner, EditText and a RecyclerView in my Activity. Everything is going good but sometimes my recyclerView is not Visible till I click on EditText in my Activity. I debug m

Solution 1:

You should remove the rcycler_productlist.smoothScrollToPosition(0); and try again.

Looks like placeOrderAdapter.notifyDataSetChanged(); and placeOrderAdapter.notifyItemInserted(productNLCModels.size()); these two statements has only one meaning, at a time you are notifying the data set and then you notify the inserted data, Instead you only need to write the placeOrderAdapter.notifyItemInserted(productNLCModels.size()); only and remove the notifyDataSetChanged();

Solution 2:

This may happen because of smoothscrolling issue in your recycler view because it changes the Focus of you recyclerview. Try to eliminate or remove

rcycler_productlist.smoothScrollToPosition(0); 

Post a Comment for "Recyclerview Is Not Showing"