Hi all, here is my question:
1. I created a new ListAdapter and a new layout xml for the list item as followings: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="64dip" > <TextView android:id="@+id/line1" android:visibility="visible" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:paddingLeft="4dip" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_alignWithParentIfMissing="true" android:layout_toRightOf="@id/testicon" android:ellipsize="marquee" android:singleLine="true" /> <CheckBox android:id="@+id/checkbox1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="4dip" android:text="" android:layout_alignParentRight="true" android:visibility="invisible"/> </RelativeLayout> 2. as you may noticed that I set the CheckBox as "invisible" as the initial state 3. in my list activity, I want to show the CheckBox for all list items ---- it may be triggered by a button click or some other events, so what I want to do is: just refresh the list, make the checkbox get shown. 4. so I changed the visibility in BaseAdapter::getView(int position, View convertView, ViewGroup parent): CheckBox itemChkBx = ( CheckBox ) mActivityContext.findViewById ( R.id.checkbox1 ); itemChkBx.setVisibility(View.VISIBLE); but I have to scroll the list to make the checkbox get shown. I also tried the getListView().invalidateViews() method, but it doesn't stable, so do we have a method to force the list view re-draw everything? Regards, James --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---