X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-demo.git;a=blobdiff_plain;f=examples%2Fanimated-gradient-card-active%2Fanimated-gradient-card-active.cpp;h=341436180dbd0fd3c0d8b47d80fcb32995591c73;hp=2c436bbe88b8f1d880a0b777e4b59872a978bec3;hb=67dd4af369a77aa7c0f3b55d3ffdff3ed73fb1ca;hpb=9f4a1f5b507e8d27804dceebdb77294df35cd6f4 diff --git a/examples/animated-gradient-card-active/animated-gradient-card-active.cpp b/examples/animated-gradient-card-active/animated-gradient-card-active.cpp index 2c436bb..3414361 100644 --- a/examples/animated-gradient-card-active/animated-gradient-card-active.cpp +++ b/examples/animated-gradient-card-active/animated-gradient-card-active.cpp @@ -1,5 +1,5 @@ /* -* Copyright (c) 2017 Samsung Electronics Co., Ltd. +* Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -141,8 +141,16 @@ public: mImageUrl[k] = CARD_IMAGE_LIST[k]; + // Create an image view for this item mCard[k] = ImageView::New(); - mCard[k].SetImage( mImageUrl[k] ); + { + Property::Map propertyMap; + propertyMap.Insert(Visual::Property::TYPE, Visual::IMAGE); + propertyMap.Insert(ImageVisual::Property::URL, mImageUrl[k]); + propertyMap.Insert(DevelVisual::Property::VISUAL_FITTING_MODE, DevelVisual::FILL); + mCard[k].SetProperty(Toolkit::ImageView::Property::IMAGE, propertyMap); + } + mCard[k].SetParentOrigin( ParentOrigin::CENTER ); mCard[k].SetAnchorPoint( AnchorPoint::CENTER ); mCard[k].SetSize( mSize.x, mSize.y );