mobilehero-archive / adamantium

:end: No longer Maintained -- Use {nativeloop} now: https://github.com/nativeloop
Other
8 stars 0 forks source link

Add support to set object properties via XML #6

Closed brentonhouse closed 8 years ago

brentonhouse commented 8 years ago

As a developer, I want to be able to set font properties for a view from the xml view, So that I can often avoid creating controller files and keep view properties together.

Desired xml usage:

<Alloy>
    <Label font:fontFamily="Roboto" font:fontSize="12sp" font:fontStyle="italic" font:fontWeight="bold" text="This is test 1" />
    <Label fonttextStyle="Titanium.UI.TEXT_STYLE_HEADLINE" text="This is test 2" />
</Alloy>

When processed, this should create a font object and properly merge this with any style objects defined.

Associated JIRA Ticket: https://jira.appcelerator.org/browse/ALOY-1363 Associated PR: https://github.com/appcelerator/alloy/pull/765