アラートダイアログにあるListViewのいくつかのアイテムを無効にする方法

StackOverflow https://stackoverflow.com/questions/3666797

  •  01-10-2019
  •  | 
  •  

質問

いくつかのアイテムを無効にしたいです ListView それはにあります AlertDialog.

どうすればいいですか?

役に立ちましたか?

解決

独自の習慣を提供してください ListAdapterAlertDialog.Builder 経由 setAdapter(). 。その後、オーバーライドできます areAllItemsEnabled()isEnabled() 必要なものを有効/無効にする。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top