I have a layout with a ListView that contains a child RecyclerView inside each element. The problem is to pass the Recycler Adapter its position in the list. I tried addind to add the tag to view in List getView () and then return it from the ViewGroup parent to onCreateViewHolder () Recycler, but the tag was null. Any ideas to solve this problem?
You can do this: Assuming you create a childview adapter inside the listview method getView (int position, View convertView, ViewGroup parent), I think you can pass this " position " in the constructor of the child adapter.
getView (int position, View convertView, ViewGroup parent)