namespace
{
- const float DEFAULT_COLOR_VISIBILITY_REMOVE_TIME = 0.5f; // 0.5 second
// Functors which wrap constraint functions with stored item IDs
struct WrappedQuaternionConstraint
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);