Toolkit::View mView;
Toolkit::ToolBar mToolBar;
Layer mContent;
- Toolkit::TextView mTitleActor;
Actor mParent;
ImageActor mCurrentImage;
mToolBar.AddControl( mEffectChangeButton, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarButtonPercentage, Toolkit::Alignment::HorizontalRight, DemoHelper::DEFAULT_MODE_SWITCH_PADDING );
// Add title to the tool bar.
- mTitleActor = Toolkit::TextView::New();
- mTitleActor.SetText( APPLICATION_TITLE_HIGHP );
- mTitleActor.SetStyleToCurrentText(DemoHelper::GetDefaultTextStyle());
- mToolBar.AddControl( mTitleActor, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarTitlePercentage, Toolkit::Alignment::HorizontalCenter );
+ // TODO
// Add an slide-show button on the right of the title
mIconPlay = ResourceImage::New( PLAY_ICON );
mCurrentImageEffect = Toolkit::DissolveEffect::New(mUseHighPrecision);
if(mUseHighPrecision)
{
- mTitleActor.SetText( APPLICATION_TITLE_HIGHP );
mEffectChangeButton.SetBackgroundImage(mIconHighP);
}
else
{
- mTitleActor.SetText( APPLICATION_TITLE_MEDIUMP );
mEffectChangeButton.SetBackgroundImage(mIconMediumP);
}
- mTitleActor.SetStyleToCurrentText(DemoHelper::GetDefaultTextStyle());
return true;
}