[TIMOB-1443] TiAPI: backgroundRepeat or similar
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-26T20:42:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.0.1 |
Components | Android |
Labels | look1 |
Reporter | Ralf Pfeiffer |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:52:58.000+0000 |
Updated | 2017-03-20T16:59:01.000+0000 |
Description
It would be great if we could tile background images, so we don't have to make custom files for when views change size because of orientation-changes or simply just resizing them for some reason.
It would be even better if it worked kinda like in CSS, with repeat-x and such, but that might be a bit overkill for Titanium.
Define API then add tickets for Android, iOS implementation.
Make it work just like css does so we can create more sophisticated UI. It would add much greater flexibility than what we have right now with the 9 patch image stuff and the similar iphone approach.
I think something like this API would be expected:
backgroundRepeat [string,int] The background repeat constant or string value such as
"repeat", "repeat-x", "repeat-y", "no-repeat"
(CSS developers friendly) or"both", "x", "y", "none"
(alternative).Personally I think making the values syntax closer to CSS as possible is desirable and intuitive, so I would vote for
"repeat", "repeat-x", "repeat-y", "no-repeat".
This is a big one for us too.
Sad that this Feature will not make to 1.5 :-(
Helpdesk customer asking for this feature in iOS:
http://developer.appcelerator.com/helpdesk/view/72041">http://developer.appcelerator.com/helpdesk/view/72041
Closing ticket as fixed.