- Toolkit::TableView tableView = Toolkit::TableView::New( 1, 2 );
- tableView.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
- tableView.SetFitHeight( 0 );
- tableView.SetFitWidth( 0 );
- tableView.SetFitWidth( 1 );
-
- Toolkit::TextLabel textLabel = Toolkit::TextLabel::New( "Select enabled" );
- textLabel.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::WIDTH );
- textLabel.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::HEIGHT );
- textLabel.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" );
- tableView.AddChild( textLabel, Toolkit::TableView::CellPosition( 0, 0 ) );
-
- ImageActor imageActor = ImageActor::New( ResourceImage::New( ENABLED_IMAGE ) );
- imageActor.SetSize( DP(RADIO_LABEL_THUMBNAIL_SIZE), DP(RADIO_LABEL_THUMBNAIL_SIZE) );
- imageActor.SetPadding( Padding( DP(20.0f), 0.0f, 0.0f, 0.0f ) );
- tableView.AddChild( imageActor, Toolkit::TableView::CellPosition( 0, 1 ) );
-
- Toolkit::RadioButton radioButton = Dali::Toolkit::RadioButton::New( tableView );
- radioButton.SetName( "radio-select-enable" );
- radioButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
- radioButton.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- radioButton.SetPosition( 0, 0 );
- radioButton.SetSelected( true );
+ Toolkit::RadioButton radioButton = Dali::Toolkit::RadioButton::New( "Select enabled" );
+ radioButton.SetProperty( Dali::Actor::Property::NAME, "radioSelectEnable" );
+ radioButton.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
+ radioButton.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
+ radioButton.SetProperty( Actor::Property::POSITION, Vector2( 0, 0 ));
+ radioButton.SetProperty( Toolkit::Button::Property::SELECTED, true );