- TextView t = TextView::New();
- t.SetMarkupProcessingEnabled(true);
- t.SetText( std::string("<font size=6>") + ShortName( text ) + std::string("</font>") );
- t.SetTextAlignment( Alignment::HorizontalLeft );
- return t;
+ TextLabel label = TextLabel::New( ShortName( text ) );
+ label.SetProperty( Dali::Toolkit::Control::Property::STYLE_NAME, "builderlabel" );
+ label.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
+
+ // Hook up tap detector
+ mTapDetector.Attach( label );
+
+ return label;