Images from XML


Last Updated:

  1. eosproject

    eosproject Member This Topic's Starter

    Joined:
    Feb 13, 2010
    Messages:
    13
    Likes Received:
    0
    Hi everyone! Can somebody help wih such problem.
    I need to take out of XML file images to view it on display using XML parser.
    I proclaimed in xml file passes to images.
    Thanks!
     

    Advertisement
  2. eosproject

    eosproject Member This Topic's Starter

    Joined:
    Feb 13, 2010
    Messages:
    13
    Likes Received:
    0
    Using something like it:

    res/xml/game.xml

    <game>
    <level>
    <bg />
    <items>
    <item android:drawable="@drawable/item1" ... />
    <item android:drawable="@drawable/item2" ... />
    </items>
    </level>
    <level>
    </level>

    Is it clear??

    So in java class I need to use XmlResourseParser
     

Share This Page

Loading...