[android-developers] Re: how to re-draw the listview ?

2009-04-14 Thread drasticp
Look at the notifyDataSetChanged() and notifyDataSetInvalidated() methods on your adapter. I'm not sure if this is the most elegant way to get the job done, but they will cause the list to dump any cached views and redraw them. --~--~-~--~~~---~--~~ You received

[android-developers] Re: how to re-draw the listview ?

2009-04-14 Thread James ZH
thanks for your reply, but my proble is introduced by a simple error, in the step 4: 4. so I changed the visibility in BaseAdapter::getView(int position, View convertView, ViewGroup parent): CheckBox itemChkBx = ( CheckBox ) mActivityContext.findViewById ( R.id.checkbox1 );