I have a Recycler View with the Images loaded from the Internal Storage. I want to Highlight the selected item when clicked. I tried a lot of thing but it was not working. A
you can use this code out of Adapter
LinearLayoutManager RvLayoutManager = (LinearLayoutManager)rootlayout.getLayoutManager(); View itemSelected = RvLayoutManager.findViewByPosition(position); itemSelected.setBackgroundColor(Color.Red);