[android-developers] Re: Modify listview item child views with adapter and getview()

2011-07-03 Thread NikolaMKD
Solved it like this: listView.setOnItemClickListener(new OnItemClickListener(){ @Override public void onItemClick(AdapterView parent, View viewItem, int position, long arg3) throws NullPointerException{ new UI(parent.getChildAt(position)).execute(null); }

Re: [android-developers] Re: Modify listview item child views with adapter and getview()

2011-07-03 Thread Kostya Vasilyev
Yes, there is a way to update the item's UI without rebuilding the entire list. Your click handler receives a view, and you can take from there. But scrolling artifacts (and a crash) show that your code doesn't work right when listview recycles views. Unless you're going to disable scrolling, that

[android-developers] Re: Modify listview item child views with adapter and getview()

2011-07-03 Thread NikolaMKD
So there is no way to update the child views programically ? List view have textview and 2 buttons, when the list is populated only textview is visible, the 2 buttons are invisible. I tried one way, it worked but only for the first items, but when you scroll it, it threw NPE. On Jul 3, 7:50 pm, Ko