Button
イベントの一部がトリガーされたときに、Libgdx の外観を変更できるようにする必要があります。
これが私のボタンの宣言です:
Button googleButton = new Button(skin.getDrawable("google_sign_in"));
私が試したことは次のとおりです。
googleButton.setBackground(skin.getDrawable("google_sign_out"));
googleButton.invalidate();
googleButton.setChecked(true);
googleButton.invalidate();
googleButton.getStyle().up = skin.getDrawable("google_sign_out");
googleButton.invalidate();
私は多くの検索を行いましたが、答えが見つかりません。誰かがこれを行う正しい方法を教えてもらえますか?