Good day. I need to display in the ListView text and images from the site. I get the text by html, and I get all the images as a sprite. It turns out I should be based on CSS in the application to cut this sprite? Those. also parse CSS? Maybe there is an easier option? Thanks for answers.

  • one
    Something I did not fully understand, and here the CSS? You need to use this library to download images nostra13android.blogspot.ru/2012/03/… and already use it to insert pictures into your foliage - dajver
  • Thank. I thought CSS was needed to understand which image from the sprite to which text to compare. - complexityclass

1 answer 1

That is, you have all the images used are glued into a single sprite, right I understand you?

In this case, yes, the only option is to programmatically parse CSS (background, background-image, background-position, background-position-x, background-position-y, etc.), and, following these rules, cut the common sprite on separate images.