Scope: - using overriden ArrayAdapter; - using selector; - using isEnabled for disabling items.
Aim: - disable some list items and
The function isEnabled() in the adapter only makes item unfocusable and unclickable.
You need to call view.setEnabled()
at the end of adapter.getView()
to make your selector functional.
Also, for a parent view to pass enable state to its descendants, you need to specify the attribute android:duplicateParentState="true"
to the child views in your xml file.