Search code examples
androidmesibo

How to change the header title in Mesibo messaging activity


I want to remove the default header view or change it to different text. I am using the provided Messaging Activity by Mesibo. I have checked all configuration options but couldn’t find one to edit this.

Screen shot is added.enter image description here


Solution

  • The default header view which you are seeing corresponds to MesiboRecycleViewHolder.TYPE_HEADER

    You need to create your own view holder and return when the type is MesiboRecycleViewHolder.TYPE_HEADER. If not, the default view will be shown.

    Refer to this document to learn about how to customize message rendering.

    https://mesibo.com/documentation/ui-modules/android/messaging/#customizing-message-rendering

    You can also refer to the source code of MesiboActivity and messaging modules in GitHub. Particularly, this file should interest you:

    https://github.com/mesibo/ui-modules-android/blob/master/Messaging/messaging/src/main/java/com/mesibo/messaging/MessageAdapter.java#L167