Skip to content

大字体 + BackgroundColorSpan 会出有问题 #1

Description

@gavinliu
        val colorSpan = BackgroundColorSpan(Color.parseColor("#aa5f0c"))
        ss.setSpan(colorSpan, 101, 105, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
        ss.setSpan(object : ClickableSpan() {
            override fun onClick(widget: View) {
                Toast.makeText(widget.context, "123", Toast.LENGTH_LONG).show()
            }
        }, 101, 105, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
        text.text = ss
        text.textSize = 40f

在 justify 那一行尾部加上 BackgroundColorSpan 有点问题。代码如上,截图如下。

device-2019-09-25-151626

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions