android-components / mozilla.components.browser.awesomebar.layout / DefaultSuggestionLayout / createViewHolder

createViewHolder

fun createViewHolder(awesomeBar: BrowserAwesomeBar, view: <ERROR CLASS>, @LayoutRes layoutId: Int): SuggestionViewHolder (source)

Overrides SuggestionLayout.createViewHolder

Creates and returns a SuggestionViewHolder instance for the provided View. The BrowserAwesomeBar will call SuggestionViewHolder.bind once this view holder should display the data of a specific AwesomeBar.Suggestion.