[android-developers] how to stick two buttons together?

2009-05-17 Thread James ZH
Hi all, I have to buttons in a RelativeLayout, but even I set the layout_marginRight/layout_marginLeft to 0, these two button are still separated. pls check the code below, any comments? http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:

[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 ); itemChkBx.setVisibility