Use sync image loading in text scrolling example 29/71029/4
authorXiangyin Ma <x1.ma@samsung.com>
Mon, 23 May 2016 16:22:09 +0000 (17:22 +0100)
committerXiangyin Ma <x1.ma@samsung.com>
Thu, 26 May 2016 13:47:27 +0000 (14:47 +0100)
Change-Id: I1a9bd9116c491f158fd2a1bf64657a5123376407

examples/text-scrolling/text-scrolling-example.cpp

index e9fa056..ef479a7 100644 (file)
@@ -128,7 +128,11 @@ public:
     const Size mTargetActorSize( mStageSize.width, DESKTOP_SIZE.height );
 
     // Create Desktop
-    ImageView desktop = ImageView::New( DESKTOP_IMAGE );
+    ImageView desktop = ImageView::New();
+    Property::Map imageMap;
+    imageMap[ "url" ] = DESKTOP_IMAGE;
+    imageMap[ "synchronousLoading" ] = true;
+    desktop.SetProperty( ImageView::Property::IMAGE, imageMap );
     desktop.SetName("desktopActor");
     desktop.SetAnchorPoint( AnchorPoint::TOP_LEFT );
     desktop.SetResizePolicy( ResizePolicy::FIXED, Dimension::ALL_DIMENSIONS );