Android parsing inner xml tags and TextView



I'm working on somekind of subtitle engine. This is the line of text that I get:


TEXT1 TEXT2

Now I need to set both texts to TextView but second part of text needs to be italic.


I have problem parsing this with DOM parser, because getContentText returns only TEXT1 + TEXT2 without span tag. And if I get span tag as a child node from parahraph element I cant decide which text it is wrapping on.


Is there a way to handle this kind of use cases?


No comments:

Post a Comment