Click here to Skip to main content
15,919,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I would like to make a custom controller in Android, which looks like this example:
XML
<control>
    <input>
        <name></name>
        <value></value>
    </input>
    <output>
        <name></name>
        <value></value>
    </output>
</control>


How can I read parameters in code?

Thanks
Posted
Updated 14-Nov-11 2:13am
v2

I would start by reading Custom components (Developers Guide)[^] and then take a look at UI elements XML[^] which fills in the gaps.

/Darren
 
Share this answer
 
Comments
majsterka 14-Nov-11 9:30am    
Thank you for your reply.
I know how to do own control with attributes, this is not what I need now.
My problem is how to parse / find parameters as xml tag.
Or do you have suggestion how to do it different way?
Sergey Alexandrovich Kryukov 14-Nov-11 14:07pm    
I answered this question, please see.
--SA
Darren_vms 15-Nov-11 6:19am    
did you click on the UI elements XML link ? I'm sure that answers the problem.
majsterka 16-Nov-11 8:15am    
Yes, of course I clicked. But still, its about attributes in xml, but I nedded parameters (tags) and that is why I had to use SAX parser.
 
Share this answer
 
Comments
majsterka 14-Nov-11 15:01pm    
Thank you, I think that this solve my problem. I will try it tomorrow.
Sergey Alexandrovich Kryukov 16-Nov-11 2:33am    
Great.
Good luck, call again.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900