Android Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingAndroid Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 16th, 2011, 06:36 PM
MrYoda MrYoda is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 1 MrYoda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 49 sec
Reputation Power: 0
Create buttons dynamicly

Hi guys, im trying to make my first app on anadoird.

The application im trying to make is a application to view information on items from a game.
I want it to parse an xml-document and create one button for each item defined in there.

Just now i have one button for each type of equipment; weapon, armor, ability, ring, rest.
What I would like you help with is if you know a way to generate some buttons.
Im not sure if what i'm asking for is possible, but any help/direction will help

I'v cut out a little bit of the weapon-section

Code:
<items>
  <weapons status="done">
    <tier0>
      <item name="Steel Dagger" type="dagger" damage="20-60 (40)" image="steeldagger" />
      <item name="Short Bow" type="bow" damage="10-40 (25)" image="shortbow" />
      <item name="Energy Staff" type="staff" damage="10-25 (17.5)" image="energystaff" />
      <item name="Fire Wand" type="wand" damage="20-40 (30)" image="firewand" />
      <item name="Short Sword" type="sword" damage="45-90 (67.5)" image="shortsword" />
    </tier0>
    <tier1>
      <item name="Dirk" type="dagger" damage="20-70 (45)" image="dirk" />
      <item name="Reinforced-Bow" type="bow" damage="15-45 (30)" image="forcedbow" />
      <item name="Firebrand Staff" type="staff" damage="10-30 (20)" image="firestaff" />
      <item name="Force Wand" type="wand" damage="30-50 (40)" image="forcewand" />
      <item name="Broad Sword" type="sword" damage="60-105 (82.5)" image="broadsword" />
    </tier1>
    <tier2>
      <item name="Blue Steel Dagger" type="dagger" damage="20-75 (47.5)" image="bluedagger" />
      <item name="Crossbow" type="bow" damage="20-50 (35)" image="crossbow" />
      <item name="Comet Staff" type="staff" damage="15-35 (25)" image="cometstaff" />
      <item name="Power Wand" type="wand" damage="35-55 (45)" image="powerwand" />
      <item name="Saber" type="sword" damage="75-105 (90)" image="sabersword" />
    </tier2>
  </weapons>
</items>


URL

/MrYoda

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingAndroid Development > Create buttons dynamicly

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap