android - Multiple Listviews using same Adapter class and same CallBack Interface to Activity -
i have 2 custom listviews each own adapter, of same class. each has same callback interface activity.
i struggling how activity can distinguish listview running callback. listener sends selected value activity. however, each listview has similar select-able values (i.e. 1,2,3,4). selected value alone isn't enough distinguish between listview selection originated.
callback listener should not implemented same activity class. can implement listeners 2 listviews on own.
for example:
listview1.setonitemclicklistener(listener1); listview2.setonitemclicklistener(listener2);
Comments
Post a Comment