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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -