UIKit Android v3
UIKit Android
UIKit
Android
Home
/
UIKit
/
Android
This is the new Docs for UIKit v3 beta for Android. To see the previous Docs, click here.

Message search is a feature that allows users to search for messages within a specific channel. It retrieves a list of messages that contains a search query from group channels joined by a user. You can search for either an exact match or a partial match.

Users can use this feature through the search bar in the message search view. When they search for a keyword in the search bar, the message search view will display the search results as shown below. Users can locate the message that they’re looking for by selecting the specific result.

Note : To learn more about implementing message search, refer to Search messages.

You can customize the UI for message search using the style resource and icon resource. To learn how to customize message search results, refer to the code in Update or change an item in a list. In order to make changes to message search results, you must use the MessageSearchAdapter.

Style resource

To customize the style of message search items, you have to change the UIKit-defined style values in the res/values/style.xml file as shown below. To learn how to customize the style, refer to Style resource.

<style name="Component.MessageSearchHeader">
</style>
<style name="Widget.Sendbird.MessagePreview">
</style>

Icon resource

IconImageDescription

icon_search

A search icon used in the search bar.