namespace
{
- const float DEFAULT_COLOR_VISIBILITY_REMOVE_TIME = 0.5f; // 0.5 second
// Functors which wrap constraint functions with stored item IDs
struct WrappedQuaternionConstraint
Dali::Toolkit::ItemView itemView = Dali::Toolkit::ItemView::DownCast( itemViewActor );
if(itemView && scrollPositionObject)
{
- ///!ToDo: Remove this once AlphaFunction in itemview is removed
- if( itemView.GetDefaultAlphaFunction() != Constraint::DEFAULT_ALPHA_FUNCTION )
- {
- mAlphaFunction = itemView.GetDefaultAlphaFunction();
- }
-
Property::Index scrollSpeedProperty = itemView.GetPropertyIndex("item-view-scroll-speed");
Property::Index scrollPositionProperty = scrollPositionObject.GetPropertyIndex("scroll-position");
constraint.SetApplyTime(durationSeconds);
constraint.SetAlphaFunction(mAlphaFunction);
-
- // Release color constraints slowly; this allows ItemView to co-exist with ImageActor fade-in
- constraint.SetRemoveTime(DEFAULT_COLOR_VISIBILITY_REMOVE_TIME);
constraint.SetRemoveAction(Dali::Constraint::Discard);
actor.ApplyConstraint(constraint);
constraint.SetAlphaFunction(mAlphaFunction);
// Release visibility constraints the same time as the color constraint
- constraint.SetRemoveTime(DEFAULT_COLOR_VISIBILITY_REMOVE_TIME);
constraint.SetRemoveAction(Dali::Constraint::Discard);
actor.ApplyConstraint(constraint);