I have a ListView
set in my AlertDialog
in Android and i'm trying to add separators as heading titles to help organize the information. I figured out how to display them... but they are still selectable by the user which isn't good.
Is there a way to disable an item to be selectable in an Android ListView
? I found an method isEnabled(int position)
to see if an item is enabled or not but none to see if its disabled.