문제

I want to disable some items in ListView which is in the AlertDialog.

How may I do it?

도움이 되었습니까?

해결책

Supply your own custom ListAdapter to the AlertDialog.Builder via setAdapter(). You can then override areAllItemsEnabled() and isEnabled() to enable/disable whatever you want.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top