android - Max selectable count for "CHOICE_MODE_MULTIPLE_MODAL" gridview -


i created gridview choice_mode_multiple_modal in android.

everything's working well. per requirements, have set limit selectable items. let's say, max selectable items limit gridview 3 items. after limit reached, user cannot select anymore , show message.

any appreciated. thanks.

use getcheckeditemcount() method check count on gridview's item select listener , check if count greater max value

public int getcheckeditemcount ()

returns number of items selected. valid if choice mode not choice_mode_none (default).


Comments

Popular posts from this blog

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -