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.
Comments
Post a Comment