1

How to select a textview having an id from a custom listview in android?

view story
linux-howto

http://stackoverflow.com – I have a custom listview having the following layout: I have defined an onClick method for 'qadd' button and 'qsub' button in xml using android:onClick property. In my Activity class how do I select the 'quantity' textView for current position? I tried this but it only updates 'quantity' textView at first position. public void addClicked(View v) { final int position = list.getPositionForView((View) v.getParent().getParent()); long rec_id = adapter.getItemId(position); JSONObject o = (JSONObject) fullList.get(rec_id + ""); TextView q = (TextView)findViewBy (HowTos)