Created
July 7, 2018 14:29
-
-
Save fnovoac/778dc1408e09c1cf5f2cbb175fcdd391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.text.SpannableString; | |
import android.text.style.RelativeSizeSpan; | |
public class StringUtil { | |
public static SpannableString spannableString (String value, int number){ | |
SpannableString s = new SpannableString(value); | |
s.setSpan(new RelativeSizeSpan(0.7f), s.length() - number, s.length(), 0); | |
return s; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment