Also,
android:clickable="true" for the row layout.
You might also be interested to make the individual children or a row
not clickable.

Regards
Sarwar Erfan



On Dec 1, 3:12 pm, Sarwar Erfan <erfanonl...@gmail.com> wrote:
> Hi Pedro,
>
> Try
> android:descendantFocusability="blocksDescendants"
> in the LinearLayout of the row xml.
>
> Info:http://developer.android.com/reference/android/view/ViewGroup.html#at...
>
> Regards
> Sarwar Erfan
>
> On Dec 1, 2:58 pm, pedr0 <pulsarpie...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi at all,
>
> > I am developing an application which make an intensive use of ListView
> > with different type of rows, for do this I have extended the
> > BaseAdapter class and override its methods, the layout of ListView is
> > very simple:
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> > android"
> >                   android:orientation="vertical"
> >                   android:layout_width="fill_parent"
> >                   android:layout_height="fill_parent"
> >                   android:clickable="true"
>
> >                  <ListView
> >                         android:id="@+id/categorieslist"
> >                         android:layout_width="wrap_content"
> >                         android:layout_height="wrap_content"
> >                    />
>
> > </LinearLayout>
>
> > The first  type of row XML is already  simple:
>
> > <?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:layout_weight="1"
> >     android:padding="6dip"
>
> >     >
>
> >      <ImageView
> >         android:id="@+id/category_image"
> >         android:layout_width="fill_parent"
> >         android:layout_height="fill_parent"
> >          android:layout_weight="1"
> >         android:layout_marginRight="20dip"
> >         android:src="@drawable/icon"
> >         />
>
> >     <TextView
> >                 android:id="@+id/category_name"
> >             android:layout_width="fill_parent"
> >             android:layout_height="fill_parent"
> >             android:layout_weight="1"
> >             android:singleLine="true"
>
> >         />
>
> > </LinearLayout>
>
> > Not all the entire area of the rows is clickable but only the area
> > covered by the ImageView and TextView, and this is my issues..
> > What's wrong?

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