1. Download our Official Android App: Forums for Android!

Apps Images from XML

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

  1. eosproject

    eosproject Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    13
    Joined:
    Feb 13, 2010

    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 Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    13
    Joined:
    Feb 13, 2010

    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...