Images from XML

Discussion in 'Application Development' started by eosproject, Feb 13, 2010.

  1. eosproject

    eosproject Member
    15

    Feb 13, 2010
    13
    0
    15
    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
    15

    Feb 13, 2010
    13
    0
    15
    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...