我有一个对话框:
Dialog dialog=new Dialog("",style);
dialog.setSize(400, 500);
dialog.setPosition(Gdx.graphics.getWidth()/2-200, Gdx.graphics.getHeight()/2-300);
我在其中添加了两个按钮:
dialog.button(stopButton);
dialog.button(goButton);
我的问题是我无法更改按钮的位置,即使我手动设置位置,按钮仍然保持在相同的位置。
我该如何解决这个问题?
谢谢。