I have an ArrayAdapter
that is bound to an ArrayList<MyClass>
There is a lot of logic inside MyClass
including changing certain properties of MyClass objects that require a refresh in view. Once such a change is detected inside MyClass object, I would like to call the associated ArrayAdapter.notifyDataSetChanged()
.
However, the items of MyClass don't automatically store a reference to the adapter, while the adapter stores a reference to the ArrayList. Is there an easy way to solve this problem?