Change data in list for RecyclerView from a single RecyclerView Item
I want to feed a list of pairs to an a RecyclerView adapter and update the value of this list based on the selection of an individual RecyclerView item.
Let's say I've got a list of pairs, myList, which looks like this:
val myList:MutableList = mutableListOf(
//(Hint, Value)
Pair("Entry 1", 3),
Pair("Entry 2", 5),
// More entries
Pair("Entry N", 999),
)
Information for what I try to achieve:
The pair is used to map a hint (or description) of a value to the
value...