Android Custom Component Properties -


I have created a component for Android, which uses two drawables.

Using static values ​​for the sphere in the code, the component works, but now I want to declare values ​​in properties (XML), does anyone have to do this?

* Edit; Is there a way to do this without using attrs.xml?

You will need to set up a property to declare properties like res / values / Attrs.xml file, then go through some code to get those values ​​inside the manufacturer of your view . I have a technique that shows.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -