Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17359] Android: Support View Shadows

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-07-01T07:53:17.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.0.0
ComponentsAndroid
Labelsandroid-l
ReporterIngo Muschenetz
AssigneeAshraf Abu
Created2014-07-22T16:24:24.000+0000
Updated2017-03-31T22:24:13.000+0000

Description

In addition to the X and Y properties, views in the Android L Developer Preview have a Z property. This new property represents the elevation of a view, which determines: The size of the shadow - Views with higher Z values cast bigger shadows. The drawing order - Views with higher Z values appear on top of other views. We could use this instead of sorting the views manually like we do now.

Comments

  1. Allen Yeung 2014-07-22

    We can also consider adding animations for elevations of views. There is also a section on clipping views, and we may be able to replace our current implementation with that.
  2. Terry Morgan 2015-05-13

    Does anyone have an update on this? Elevation and shadows are a key facet of the Android L design philosophy and I'm disappointed to see that 6 months after the release of Android L, this still appears to have not been addressed.
  3. Ashraf Abu 2015-06-30

    PR for elevation/shadow support: https://github.com/appcelerator/titanium_mobile/pull/6931 by [~manuellehner]
  4. Manuel Lehner 2015-06-30

    Adding support for animation of elevation is another issue. This does not yet work with Ti.UI.Animation.
  5. Lee Morris 2017-03-31

    Closing ticket as fixed, if there are any problems, please file a new ticket.

JSON Source