[TIMOB-17359] Android: Support View Shadows
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-01T07:53:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.0.0 |
Components | Android |
Labels | android-l |
Reporter | Ingo Muschenetz |
Assignee | Ashraf Abu |
Created | 2014-07-22T16:24:24.000+0000 |
Updated | 2017-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.
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.
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.
PR for elevation/shadow support: https://github.com/appcelerator/titanium_mobile/pull/6931 by [~manuellehner]
Adding support for animation of elevation is another issue. This does not yet work with Ti.UI.Animation.
Closing ticket as fixed, if there are any problems, please file a new ticket.