Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9366] Android: Add "radial" support to view "backgroundGradient" property

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2018-02-27T01:10:06.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 7.1.0
ComponentsAndroid
Labelsandroid, api, gradient, parity
ReporterJosh Roesslein
AssigneeJoshua Quick
Created2012-06-04T11:51:56.000+0000
Updated2018-03-06T22:30:50.000+0000

Description

Android's radial gradient shader only supports a single point circle radial gradient. The Titanium radial gradient follows what is specified in the HTML Canvas specification and is also the native behavior on iOS. We should investigate a way to implement our own radial gradient that follows the HTML Canvas specification or wait for Android to expose this type of gradient in the future. It has been implemented in Skia, so it is possible this will be added in a future API level.

Attachments

FileDateSize
GradientRadialTest.js2018-02-22T04:40:24.000+00002847
GradientRadialTest.png2018-02-22T04:41:49.000+0000996489

Comments

  1. Joshua Quick 2018-02-09

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/9815
  2. Joshua Quick 2018-02-17

    PR (7.1.x): https://github.com/appcelerator/titanium_mobile/pull/9855
  3. Lokesh Choudhary 2018-02-27

    FR Passed. PR's merged.
  4. Rene Pot 2018-03-05

    Added new PR for updating docs: https://github.com/appcelerator/titanium_mobile/pull/9903 Backported to 7_1_x https://github.com/appcelerator/titanium_mobile/pull/9905
  5. Joshua Quick 2018-03-05

    Thanks for updating the docs [~topener]! :)
  6. Lokesh Choudhary 2018-03-05

    Doc change PR's passed FR. PR's merged.
  7. Lokesh Choudhary 2018-03-06

    Verified the fix in SDK 7.2.0.v20180305152636 & 7.1.0.v20180306061214. Closing. Studio Ver: 5.0.0.201712081732 OS Ver: 10.13.2 Xcode Ver: Xcode 9.2 Appc NPM: 4.2.12 Appc CLI: 7.0.2 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.11.0 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 5 — Android 6.0.1 ⇨ google Nexus 6P — Android 8.0.0

JSON Source