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

css - Text drops down with smaller window -

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

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -