Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between CHOICE_MODE_MULTIPLE and CHOICE_MODE_MULTIPLE_MODAL?

Probably a very basic question, but what is the difference between setting a ListViews choice mode between CHOICE_MODE_MULTIPLE and CHOICE_MODE_MULTIPLE_MODAL? The Android documentation doesn't really explain much..

From Android Dev site:

  • CHOICE_MODE_MULTIPLE: The list allows multiple choices

  • CHOICE_MODE_MULTIPLE_MODAL: The list allows multiple choices in a modal selection mode

like image 767
Gyroscope Avatar asked Dec 20 '12 21:12

Gyroscope


2 Answers

Well the documentation actually states the major difference.

CHOICE_MODE_MULTIPLE: The list allows multiple choices  CHOICE_MODE_MULTIPLE_MODAL: The list allows multiple choices in a modal selection mode 

Modal means the user HAS to interact with the window before continuing. Non modal, they do not.

like image 55
prolink007 Avatar answered Sep 19 '22 03:09

prolink007


If I'm not mistaken, CHOICE_MODE_MULTIPLE_MODAL was added in the later APIs (11?) and is primarily used to indicate multiple selections using a Contextual ActionBar (CAB).

like image 37
karllindmark Avatar answered Sep 21 '22 03:09

karllindmark