Size size = Director::getInstance()->getVisibleSize();
Layout* layout = Layout::create();
layout->setContentSize(Size(300,200));
layout->setBackGroundColorType(LAYOUT_COLOR_SOLID);
//layout->setSize(Size(300,200));
layout->setAnchorPoint(Point(0.5f,0.5f));
layout->setBackGroundColor(Color3B::BLUE);
layout->setPosition(Point(size.width/2,size.height/2));
this->addChild(layout);
Button* button = Button::create("animationbuttonnormal.png", "animationbuttonpressed.png
Layout* layout = Layout::create();
layout->setContentSize(Size(300,200));
layout->setBackGroundColorType(LAYOUT_COLOR_SOLID);
//layout->setSize(Size(300,200));
layout->setAnchorPoint(Point(0.5f,0.5f));
layout->setBackGroundColor(Color3B::BLUE);
layout->setPosition(Point(size.width/2,size.height/2));
this->addChild(layout);
Button* button = Button::create("animationbuttonnormal.png", "animationbuttonpressed.png