Skip to content

ws1-framework/com.airwatch.ui.widget/AWSearchAutoComplete

AWSearchAutoComplete

open class AWSearchAutoComplete : ICLipBoard

A helper class to honour com.airwatch.clipboard.CopyPasteManager in SearchView.

Instead of creating an entire custom SearchView widget that can handle clip data, this class offers a shortcut solution to do so. The SearchView allows us to inflate our own layout via the styleable attribute SearchView_layout. In the theme associated with your searchview override the style attribute "searchViewStyle" to define a custom style and in the custom style, override attribute "layout" to use aw_searchview_abc_search_view. See style ActionBarTheme in Boxer for an example.

Functions

Name Summary
setTypeface open fun setTypeface(ctx: Context, fontId: Int): Boolean
Sets the font style of the TextView based on the passed fontId.