-
- mLayout = VerticalLayout::New();
- mLayout.SetParentOrigin( ParentOrigin::TOP_LEFT );
- mLayout.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- Stage stage = Stage::GetCurrent();
- stage.Add( mLayout );
- stage.KeyEventSignal().Connect(this, &EmojiExample::OnKeyEvent);
-
- for( unsigned int index = 0u; index < NUMBER_OF_EMOJIS; ++index )
+ Window window = application.GetWindow();
+ window.SetBackgroundColor(Color::WHITE);
+ window.KeyEventSignal().Connect(this, &EmojiExample::OnKeyEvent);
+
+ mTableView = Toolkit::TableView::New(NUMBER_OF_EMOJIS, 1);
+ mTableView.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH);
+ mTableView.SetResizePolicy(ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT);
+ mTableView.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ mTableView.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ mTableView.TouchedSignal().Connect(this, &EmojiExample::OnTouch);
+ window.Add(mTableView);
+
+ for(unsigned int index = 0u; index < NUMBER_OF_EMOJIS; ++index)