+ // add title and subtitle(if exist)
+ mTitle.SetProperty( Toolkit::TextLabel::Property::TEXT, page.GetTitle() );
+ if( page.GetSubTitle().empty() ) //display title
+ {
+ mTitleLayout.SetFixedHeight( 1,mCurrentStyle->titleHeightWithoutSubtitle - mCurrentStyle->subtitleHeight );
+ mTitleLayout.AddChild( mTitle, Toolkit::TableView::CellPosition(1,0,2,1) );
+ }
+ else //display title and subtitle
+ {
+ mTitleLayout.SetFixedHeight( 1, mCurrentStyle->titleHeightWithSubtitle );
+ mTitleLayout.AddChild( mTitle, Toolkit::TableView::CellPosition(1,0) );
+ mSubTitle.SetProperty( Toolkit::TextLabel::Property::TEXT, page.GetSubTitle() );
+ mTitleLayout.AddChild( mSubTitle, Toolkit::TableView::CellPosition(2,0) );
+ }
+