Change-Id: I52ea6a18647e5dfe3901f433fc6981080a5fcef6
// Add logo
mLogo = CreateLogo( LOGO_PATH );
// Add logo
mLogo = CreateLogo( LOGO_PATH );
+ mRootActor.SetFixedHeight( 1, mLogo.GetImage().GetHeight() + LOGO_BOTTOM_PADDING_HEIGHT );
+
Alignment alignment = Alignment::New();
alignment.Add(mLogo);
mRootActor.AddChild( alignment, TableView::CellPosition( 1, 0 ) );
Alignment alignment = Alignment::New();
alignment.Add(mLogo);
mRootActor.AddChild( alignment, TableView::CellPosition( 1, 0 ) );
ImageActor DaliTableView::CreateLogo( std::string imagePath )
{
Image image = Image::New( imagePath );
ImageActor DaliTableView::CreateLogo( std::string imagePath )
{
Image image = Image::New( imagePath );
- image.LoadingFinishedSignal().Connect( this, &DaliTableView::OnLogoLoaded );
-
ImageActor logo = ImageActor::New( image );
logo.SetAnchorPoint( AnchorPoint::CENTER );
ImageActor logo = ImageActor::New( image );
logo.SetAnchorPoint( AnchorPoint::CENTER );
-void DaliTableView::OnLogoLoaded( Dali::Image image )
-{
- mRootActor.SetFixedHeight( 1, image.GetHeight() + LOGO_BOTTOM_PADDING_HEIGHT );
-}
-
bool DaliTableView::PauseBackgroundAnimation()
{
PauseAnimation();
bool DaliTableView::PauseBackgroundAnimation()
{
PauseAnimation();
Dali::ImageActor CreateLogo( std::string imagePath );
/**
Dali::ImageActor CreateLogo( std::string imagePath );
/**
- * Callback for when the logo image is loaded
- *
- * @param[in] image The loaded logo image
- */
- void OnLogoLoaded( Dali::Image image );
-
- /**
* Timer handler for ending background animation
*
* @return Return value for timer handler
* Timer handler for ending background animation
*
* @return Return value for timer handler