Return true in areAllItemsEnabled() and false in isEnabled for specific item. The disabled item wont be clickable but you will still be able to view the divider lines
Note: This doesn’t work for Android 5
More Related Contents:
- Custom filtering in Android using ArrayAdapter
- ArrayAdapter in android to create simple listview
- What is the benefit of ViewHolder pattern in android?
- Redraw a single row in a listview [duplicate]
- ListView in ArrayAdapter order get’s mixed up when scrolling
- How to write a custom filter for ListView with ArrayAdapter
- ArrayAdapter.NotifyDataSetChanged() is not working?
- OnItemClickListener using ArrayAdapter for ListView
- How can I set onClickListener on ArrayAdapter?
- ListView: setItemChecked only works with standard ArrayAdapter – does NOT work when using customized ArrayAdapter?
- Multiple choice list with custom view?
- Recycling views in a listview, worth it?
- RecyclerView vs. ListView
- Getting an issue while checking the dynamically generated checkbox through list view
- Android: How to detect double-tap?
- Changing background color of ListView items on Android
- Android : How to set onClick event for Button in List item of ListView
- Using contextmenu with listview in android
- How can I make a horizontal ListView in Android? [duplicate]
- Detecting which selected item (in a ListView) spawned the ContextMenu (Android)
- ListView and Buttons inside ListView
- ANDROID : split the screen in 2 equals parts with 2 listviews
- How to detect “Recent Apps” system button clicks (Honeycomb+)
- Can’t click on ListView row with imagebutton
- How do I check when my ListView has finished redrawing?
- Remove the bottom divider of an android ListView
- Placing ViewPager as a row in ListView
- How to get selected list items from a Listview with checkBox and Custom Adapter?
- Android Click on listItem checks wrong checkbox
- Using custom simpleCursorAdapter