how to get string from string.xml in adapter class on click method

I want to get string in my adapter class on view holder in on click method my app crash when i implement the code write below in on click if(postion==1). public class Adapter extends RecyclerView….

Android RecyclerView addition & removal of items

I have a RecyclerView with an TextView text box and a cross button ImageView. I have a button outside of the recyclerview that makes the cross button ImageView visible / gone. I’m looking to remove …