Skip to content

White cannot be set #147

Description

@gaosheng091
<style name="SendbirdBody3OnDark01"> sans-serif normal 14sp 6sp #ffffff </style>
<item name="android:textColor">#ffffff</item>

When Android: textColor is # ffffff, I cannot display white text in my chat messages.

MyUserMessageView(binding.tvMessage)-->ViewUtils editedTextMarkUIConfig.bind-->
if (textColor != UNDEFINED_RESOURCE_ID) {
spannable.setSpan(ForegroundColorSpan(textColor), start, end, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE)
}

When textColor is # ffffff, textColor=-1, so this judgment will hold, and the color will not be set to prevent white from being assigned a value

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions