Google游戏的等候室界面外观更好看

b15*_*b15 6 android google-play-services

我正在使用Google Play服务创建游戏。当玩家等待与他人建立联系时,他们处于等候室的用户界面中,如下所示:

在此处输入图片说明

如您所见,默认的等候室UI非常基本,并且从视觉上看完全不适合我的游戏主题。我想在该UI中更改不同元素的背景,但是布局的定义没有暴露在我可以看到的任何地方。有没有办法编辑等候室的布局?

我使用的是他们的示例应用程序“ ButtonClicker2000”中的代码,网址为https : //github.com/playgameservices/android-basic-samples

显示等候室的方法如下:

// Show the waiting room UI to track the progress of other players as they enter the
// room and get connected.
void showWaitingRoom(Room room) {
    // minimum number of players required for our game
    // For simplicity, we require everyone to join the game before we start it
    // (this is signaled by Integer.MAX_VALUE).
    final int MIN_PLAYERS = Integer.MAX_VALUE;
    Intent i = Games.RealTimeMultiplayer.getWaitingRoomIntent(mGoogleApiClient, room, MIN_PLAYERS);

    // show waiting room UI
    startActivityForResult(i, RC_WAITING_ROOM);
}
Run Code Online (Sandbox Code Playgroud)

小智 -1

您需要在 xml 文件中使用 android:background
作为颜色:android:background="@color/white"
对于 img: android:background="@drawable/background"