Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想禁用ListView.AlertDialog
ListView
AlertDialog
我该怎么做?
ListAdapter为AlertDialog.Buildervia提供您自己的自定义setAdapter()。然后,您可以覆盖areAllItemsEnabled()并isEnabled()启用/禁用您想要的任何内容。
ListAdapter
AlertDialog.Builder
setAdapter()
areAllItemsEnabled()
isEnabled()