Skip to content Skip to sidebar Skip to footer

Android Listview Header Disable Click

I'm using isEnabled in my BaseAdapter of ListView and controlling which rows can be clickable. However, I want to disable click event for my header and isEnabled does not work. Pos

Solution 1:

You can use addHeaderView(header, null, false). For the header, inflate a view which has your header content with a divider underneath. This view is what I used for the divider.

<View
    android:layout_width="fill_parent"
    android:layout_height="1px"
    android:background="#adaaad" />

Post a Comment for "Android Listview Header Disable Click"