java - Extracting multiple colors from a TextView Android -


so know extract color textview use getcurrenttextcolor() textview contains multiple colors in it. how can preserve , extract data? need color blackbox testing application i.e when key pressed, part of textview changed not all. i'm trying test if part changed need extract data.

what need use gettext() retrieve spannablestring. can extract spans , each span markup objects associated it. markup classes in android.text.style: foregroundcolorspan you're looking for.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -