UI Customization

Customize Conversation UI components in your Android app

The CustomUIDelegate allows you to customize UI components, such as the login prompt, Conversation footer, and navigation title.

20882088

CustomizableViewType Reference

CustomizableViewType

CustomizableViewType

1

Login prompt TextView

LOGIN_PROMPT_TEXT_VIEW

2

Say control TextView in Pre-conversation

SAY_CONTROL_IN_PRE_CONVERSATION_TEXT_VIEW

3

Say control TextView in conversation

SAY_CONTROL_IN_CONVERSATION_TEXT_VIEW

4

Community question TextView

COMMUNITY_QUESTION_TEXT_VIEW

5

Conversation footer View

CONVERSATION_FOOTER_VIEW

6

Navigation title TextView

NAVIGATION_TITLE_TEXT_VIEW

7

Community guidelines TextView

COMMUNITY_GUIDELINES_TEXT_VIEW

8

Create Comment action button

COMMENT_CREATION_ACTION_BUTTON

9

Read only label

READ_ONLY_TEXT_VIEW

10

Empty state read only label

EMPTY_STATE_READ_ONLY_TEXT_VIEW



Customize UI components

Use the following steps to configure UI components:

  1. Set a CustomUIDelegate.
SpotIm.setCustomUIDelegate(object: CustomUIDelegate {
    override fun customizeView(viewType: CustomizableViewType, view: View, isDarkModeEnabled: Boolean) {
        when (viewType) {
            CustomizableViewType.LOGIN_PROMPT_TEXT_VIEW -> {
                val textView = view as? TextView
                // set your own customization
            }
      // set more customizations to another CustomizableViewType
    }
  }
}

  1. Define and customize the CustomizableViewType.


Did this page help you?