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

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -