klinker24 / Android-TextView-LinkBuilder

Insanely easy way to define clickable links within a TextView.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cancel long press monitor

tcqq opened this issue · comments

commented

Hello, thank your library, I have a problem, now I am only added setOnClickListener, not added setOnLongClickListener, but when I click text long time, the phone will vibrate, this shows LongClickListener are effective, So I want to cancel LongClickListener or modify the default value, How should I do it? Thank you.

        Link terms = new Link("translate")
                .setTextColor(accentColor)
                .setOnClickListener(s -> {
                    AndroidUtil.openLink(getParent(), "https://translate.google.cn/");
                });