+ //Create path
+ float xHalfSize(size.x * 0.5f);
+
+ Dali::Path path = Dali::Path::New();
+ Dali::Property::Array points;
+ points.Resize(3);
+ points[0] = Vector3(xHalfSize, 0.0f, -xHalfSize);
+ points[1] = Vector3(0.0f, 0.0f, 0.0f);
+ points[2] = Vector3(-xHalfSize, 0.0f, -xHalfSize);
+ path.SetProperty(Path::Property::POINTS, points);
+
+ Dali::Property::Array controlPoints;
+ controlPoints.Resize(4);
+ controlPoints[0] = Vector3(xHalfSize, 0.0f, 0.0f);
+ controlPoints[1] = Vector3(xHalfSize, 0.0f, 0.0f);
+ controlPoints[2] = Vector3(-xHalfSize, 0.0f, 0.0f);
+ controlPoints[3] = Vector3(-xHalfSize, 0.0f, 0.0f);
+ path.SetProperty(Path::Property::CONTROL_POINTS, controlPoints);
+
+ ScrollViewPagePathEffect effect = ScrollViewPagePathEffect::New(path,
+ Vector3::ZERO,
+ Toolkit::ScrollView::Property::SCROLL_FINAL_X,
+ Vector3(size.x, size.y, 0.0f),
+ 3);