UI Components
The Mapbox Search SDK for Android offers two pre-built UI components which you can use to build a custom search experience for your users. The UI components are:
Place Card
SearchPlaceBottomSheetView
(sometimes we will use Place Card term for this UI component later in this doc). This is a UI component that displays search result details like name, address, distance to the place from user's location, and action buttons like Navigate, Share, and etc.
Search results view
SearchResultsView
- is a UI component that can display search results list. Technically, this is a subclass of the RecyclerView
with predefined Adapter where items represent search states, for example, search result items that display details like name, address, distance to the place from user's location, and icon.
Installation
Before using any of Mapbox's Search products, you need to do some common installation steps. Follow this guide for the installation and then you can use any of the UI components we will discuss next.