Hello All

I have checkbox in every row of listview. If click in a row then it dont
make focus.Why?

My ListView xml:
---------------------------------------------------------start--------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:fitsSystemWindows="true" android:layout_weight="1"
    android:orientation="vertical">
    <RelativeLayout android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:background="#b4b4b4">

        <TextView android:id="@+id/txt" android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:textSize="8pt"
            android:layout_alignParentLeft="true" android:textStyle="bold"
            android:layout_centerVertical="true" android:textColor="#000000"
            android:text="Filter Group">
        </TextView>

        <ImageView android:layout_alignParentRight="true"
            android:src="@drawable/icon_filter"
android:layout_width="wrap_content"
            android:layout_height="wrap_content"
android:layout_margin="6dip"
            android:scaleType="fitXY" android:paddingBottom="4dip">
        </ImageView>

    </RelativeLayout>

    <ListView android:id="@+id/filtergroup_listview"
        android:layout_width="fill_parent"
android:layout_height="fill_parent"
        android:layout_weight="1" android:paddingBottom="4dip"
        android:paddingTop="4dip">
    </ListView>

</LinearLayout>

------------------------------------------------------------------------end---------------------------------------------------------------------------------------
my row of ListView:

---------------------------------------------------------start---------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:fitsSystemWindows="true" android:layout_weight="1"
    android:orientation="horizontal">
    >

    <LinearLayout android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:fitsSystemWindows="true"
        android:layout_weight="1" android:orientation="horizontal"
        android:layout_marginTop="7dip" android:layout_marginBottom="7dip"
        android:layout_marginLeft="5dip">
        >
        <CheckBox android:text="" android:id="@+id/CheckBox01"
            android:layout_width="fill_parent"
android:layout_height="wrap_content"
            android:focusable="false" />

    </LinearLayout>
</LinearLayout>
------------------------------------------------------------------------end---------------------------------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to