I have a list view and want each cell in my within it to be disabled so that when you tap on it the text colors stay the same.
But I want it to be scrollable.
How can I achieve this?
I have a list view and want each cell in my within it to be disabled so that when you tap on it the text colors stay the same.
But I want it to be scrollable.
How can I achieve this?
This similar post might be of help. The general approach is to disable all the items instead of the whole view. Essentially:
ArrayAdapter
(or any other adapter)isEnabled(int position)
to return false
areAllItemsEnabled()
to return false
all the easier! list.setEnabled(false)
Did you try adding android:clickable="false" to the list view's rows?
© 2022 - 2024 — McMap. All rights reserved.