RecyclerView scroll to position and get that view
问题 I want to auto scroll a list item to top (firstVisible item) in my recycler view and get the view at that position, so I can highlight it, from my fragment. So, this is the gist of my fragment code : private void activateNewListItem(int position) { mLayoutManager().scrollToPositionWithOffset(position, 0); RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForLayoutPosition(position); View view = viewHolder.getItemView(); view.setBackgroundColor(getResources().getColor(R.color