klinker24 / Android-TextView-LinkBuilder

Insanely easy way to define clickable links within a TextView.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I want to use in combination with Html.fromHtml

k2wanko opened this issue · comments

That it is the following code will be broken style.

textView.setText(Html.fromHtml(stringHtml));
textView.setMovementMethod(LinkMovementMethod.getInstance());
LinkBuilder.on(textView)
                .addLink(new Link(Patterns.WEB_URL).setTextColor(color).setOnClickListener(webLinkListener))
                .build();

I have a correction. 978d0f6

Looks good to me. Create a pull request and I will merge it.

@klinker24 Please review. #31

Thanks for the help :)