android - EditText in ListView using ArrayAdapter -


i've listview displays single button , single edittext in each listview row.

i'm using viewholder pattern in arrayadapter buttons share single onclicklistener. picking button click easy because onclick(view view) in onclicklistener gives me view (and use gettag() model object).

i can't figure out how have single textwatcher changed text, because there's no view parameter in textwatcher ontextchanged() callback. appreciated!

the trick create generic textwatcher class. then, each instance create should passed reference of view placed into.

example: https://stackoverflow.com/a/6172024/560600


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -