I have recyclerview
in that i need to color 1st item's button
.
so that I use following way,after notifyDataSetChanged()
View viewItem = rvProductList.getLayoutManager().findViewByPosition(0);
but viewItem
is getting null
.
Is there any way of getting first items position?