SimpleText icon indicating copy to clipboard operation
SimpleText copied to clipboard

A simple spannable string helper

Results 6 SimpleText issues
Sort by recently updated
recently updated
newest added

Replaced compile with implementation as it is deprecated in 2018.

Example of use: ``` SimpleText.from(text) .pattern(Pattern.compile("myPattern", Pattern.CASE_INSENSITIVE)).textColor(...) .pattern("myPattern1", "myPattern2").textColor(...) ```

Since it is already possible to set `underline()` for default text state, please also **enable setting underline for pressed state**. Currently, we can only set pressed color & background. Thank...

**Snippet** in SignInFragment.kt ``` val signUpText = SimpleText.from(signUpTextView.text) signUpText.apply { first(getString(R.string.sign_up) textColor(R.color.blue) underline() pressedTextColor(R.color.red) onClick(signUpTextView) { _, _, _ -> fragmentManager?.let { goToRegisterFragment() } } } signUpTextView.text = signUpText ```...