getSummarySpannable

public abstract Spannable getSummarySpannable(Context context, T t)

Specifies the content to be displayed in the conversation list when the last message of a conversation is of this type. For example: If an image message should be displayed as Image in the conversation, return the corresponding string resource.

Return

The string resource to be displayed in the conversation

Parameters

context

The context

t

The message content


public Spannable getSummarySpannable(Context context, Conversation conversation)

The content to be displayed in the conversation when the last message in the conversation list is of this type. For example: If an image message should be displayed as Image in the conversation, return the corresponding string resource.

Parameters

context

The context

conversation

The message body