- // Apply dim color on the gif view and the play button
- imageView.SetColor( DIM_COLOR );
-
- return imageView;
- }
-
- Toolkit::ImageView CreateImageViewWithAnimatePixelAreaButton( Property::Value& viewSetup, const std::string& buttonLabel )
- {
- Toolkit::ImageView imageView = Toolkit::ImageView::New();
- imageView.SetProperty( Toolkit::ImageView::Property::IMAGE, viewSetup );
- imageView.SetParentOrigin( ParentOrigin::CENTER );
-
- // Create a push button, and add it as child of the image view
- Toolkit::PushButton animateButton = Toolkit::PushButton::New();
- animateButton.SetProperty( Toolkit::Button::Property::LABEL, buttonLabel );
- animateButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
- animateButton.SetAnchorPoint( AnchorPoint::TOP_CENTER );
- animateButton.SetY( 20.f );
-
- animateButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
- animateButton.SetProperty( Actor::Property::INHERIT_SCALE, false );
- imageView.Add( animateButton );
-
- mTapDetector.Attach( animateButton );
- mTapDetector.Attach( imageView );
-
- return imageView;