Pass String from Adapter to Fragment using interface
问题 This is question is based on this answer. I'm trying to pass a string from my RecyclerView.Adapter to my fragment. In my adapter I added the following: onItemClickListner onItemClickListner; public void setOnItemClickListner(VideoAdapter.onItemClickListner onItemClickListner) { this.onItemClickListner = onItemClickListner; } public interface onItemClickListner{ void onClick(String str);//pass your object types. } I pass the following string once the amount of items in my adapter is less then