Search this group, this was discussed here very recently.

On Tue, Jun 9, 2009 at 8:50 AM, Mike Lanin <mike.la...@gmail.com> wrote:

>
> Hi, guys! I want to use ListView each Item of wich has checkBox. I
> want checkBox check and uncheck when I click it and some processes
> runing when I click on item, but not on the checkBox. I'm trying to
> use this layout as item:
>
> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>        android:id="@+id/MainLayout"
>        android:orientation="vertical"
>        android:layout_height="wrap_content"
>        android:layout_width="fill_parent"
>        android:minHeight="57px">
>
>
>
>                                        <CheckBox
>
>  android:layout_height="wrap_content"
>
>  android:layout_width="wrap_content"
>                                                android:gravity="left"
>
>  android:layout_marginLeft="2px"/>
>
>
>                                                <TextView
> android:id="@+id/NameOfGroup"
>
>  android:layout_height="wrap_content"
>
>  android:layout_width="fill_parent"
>
>  android:textColor="#FFFFFF"
>
>  android:singleLine="true"
>
>  android:minHeight="30px"
>
>  android:textSize="20px"
>
>  android:textStyle="bold"
>
>  android:layout_marginLeft="5px"
>
>  android:gravity="center_vertical|center_horizontal"/>
> </RelativeLayout>
>
>
> checkBox checks and unchecks as I want, but OnItemClickLictener
> doesn't catch anything when I click on Item. However it makes what I
> want if I choose and click it using trackball. What should I do?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to