Skip to content

Instantly share code, notes, and snippets.

View jo0707's full-sized avatar
:shipit:
guthib

Joshua Sinaga jo0707

:shipit:
guthib
View GitHub Profile
@jo0707
jo0707 / PatternEditableBuilder.java
Created June 28, 2021 20:24 — forked from nesquena/PatternEditableBuilder.java
PatternEditableBuilder - Easy way to create colored clickable spans within a TextView!
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.TextPaint;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.View;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.regex.Matcher;