Customize selection for users
By default, Sendbird UIKit for Android supports multi-selection in the user list. This section guides you on how to customize the number of selections available.
Available selection screens
The following table shows a list of all fragments and its adapters that support user selection.
Limit the number of selection
To customize the selection, you need to override the interaction within the ViewHolder where the
selectedUserIdList is modified through adding or removing. This requires creating a custom ViewHolder and Adapter classes. For additional information, refer to the applying custom adapters page.
The following example is an implementation of a
CreateChannelUserListAdapter that limits the number of selectable users.
Custom view for selection
The XML layout for the custom user selection is defined as follows.
For an in-depth practical demonstration, see our sample code.