private void buildTutorialDialog(String animationPath) { AssetManager manager = AssetManager.getInstance(); StyleHelper helper = StyleHelper.getInstance(); final Dialog tutorial = new Dialog("", StyleHelper.getInstance() .getDialogStyle()); tutorial.clear(); tutorial.fadeDuration = 0f; Table buttonTable = new Table(); Drawable drawable = new TextureRegionDrawable(new TextureRegion( manager.get(animationPath, Texture.class))); // used image button here because it keeps the ratio of the texture ImageButton tutorialImage = new ImageButton(drawable); ImageButton okay = new ImageButton( helper.getImageButtonStyleRound("widgets/icon-check")); okay.addListener(new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { tutorial.hide(); } }); buttonTable.add(okay).size(100).bottom().right().expand().pad(30); tutorial.stack(tutorialImage, buttonTable).height(500).width(800); tutorial.show(stage); }