This won't work right - you still want to get clicks on the data portion of
a layout that starts a new group.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

17.11.2010 1:18 пользователь "Streets Of Boston" <[email protected]>
написал:

Add these methods to your list-view's adapter:

@Override
public boolean areAllItemsEnabled() {
 return false;
}

@Override
public boolean isEnabled(int position) {
  return !itemIsHeader(position);
}

where you implement the itemIsHeader based on the position in the
adapter. If the item on the given position is a header, return false,
otherwise true.

Note, however, that a disabled list-item's separators disappear.





On Nov 16, 5:01 pm, Neilz <[email protected]> wrote:
> Hi Kostya.
>
> At first glance, your ...
> > Kostya Vasilyev -- WiFi Manager + pretty widget --
http://kmansoft.wordpress.com- Hide quoted text -
>
> - Show quoted text -


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" ...

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