setCustomTitle

open fun setCustomTitle(@Nullable customTitleView: @Nullable View): AlertDialog.Builder(source)

Set the title using the custom view customTitleView.

The methods setTitle and setIcon should be sufficient for most titles, but this is provided if the title needs more customization. Using this will replace the title and icon set via the other methods.

Note: To ensure consistent styling, the custom view should be inflated or constructed using the alert dialog's themed context obtained via getContext.

Return

this Builder object to allow for chaining of calls to set methods

Parameters

customTitleView

the custom view to use as the title