title: Using SVG files in a ListView
body: <p>Is it possible to use SVG files in ListViews (and if so, how?)</p>
  
  <p>I've found some code that I can use to generate an ImageView and this works perfectly fine and loads up the required SVG Image</p>
  
  <pre><code>ImageView imageView = new ImageView(this);
  SVG svg = SVGParser.getSVGFromResource(getResources(), R.drawable.afghanistan);
  imageView.setImageDrawable(svg.createPictureDrawable());
  setContentView(imageView);
  </code></pre>
  
  <p>I'm just struggling to find a way of populating the ListView with SVG Images.  I'm populating my ListView in the code (example shown below)</p>
  
  <pre><code>private void populateShoppingList() {
  shoppingList.add(new listItem("Apple", R.drawable.apple);
  shoppingList.add(new listItem("Banana", R.drawable.banana));
  shoppingList.add(new listItem("Grapes", R.drawable.grapes));
  shoppingList.add(new listItem("Orange", R.drawable.orange));
  }
  </code></pre>
  
  <p>Could anyone assist with ideas (or code) on how to get SVG files into the ListView?</p>
  
  <p>Any help would be greatly appreciated!!!</p>