Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19921] Windows: Implement missing View properties

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-11-23T14:40:49.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.2.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-11-11T23:06:33.000+0000
Updated2017-03-21T22:38:16.000+0000

Description

From TIMOB-19837 Ti.UI.View TitaniumKit introduces a lot of properties. Ti.UI.View for Windows should implement them as much as possible.

Comments

  1. Kota Iguchi 2015-11-19

    https://github.com/appcelerator/titanium_mobile_windows/pull/477

    Newly supported View properties

    * backgroundFocusedColor * backgroundFocusedImage * backgroundGradient * backgroundSelectedColor * backgroundSelectedImage * borderColor * borderWidth

    Test case

       var win = Ti.UI.createWindow();
       var view = Ti.UI.createView({width:'50%', height:'50%'});
       
       //view.backgroundImage = 'http://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/logo.png';
       //view.backgroundColor = 'green';
       //view.backgroundFocusedColor = "green";
       //view.backgroundSelectedColor = "blue";
       //view.backgroundSelectedImage = "Square71x71Logo.png";
       //view.backgroundFocusedImage = "Square71x71Logo.png";
       
       view.backgroundGradient = {
           type: 'linear',
           startPoint: { x: '0%', y: '50%' },
           endPoint: { x: '100%', y: '100%' },
           colors: [{ color: 'red', offset: 0.0 }, { color: 'blue', offset: 0.25 }, { color: 'red', offset: 1.0 }],
       }
       win.add(view);
       win.open();
       
    There are some known issues. See comments in [PR 477](https://github.com/appcelerator/titanium_mobile_windows/pull/477) for details.
  2. Josh Longton 2016-02-11

    [~kota] Works as expected, Will you be updating the docs to show that selected/focused properties for the view are not working as of yet.
  3. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source