问题
I'm using Google Play Games APIs for my app. When I use the following to launch the Achievements display for my app:
startActivityForResult(
getGamesClient().getAchievementsIntent(), 2);
The activity that launches has a different action bar color than what I'm using in my main app.
How can I customize this action bar color to match?
回答1:
You can't customize that screen. It's important for that screen to look like Google Play Games and not a specific game because that gives the user a feeling of familiarity -- that screen is the same across several of the games they play.
If you want to have a completely customized and immersive experience, you can use the raw data APIs. For example, call GamesClient.loadAchievements() to load the achievements and display them in a custom UI.
来源:https://stackoverflow.com/questions/19333612/change-action-bar-style-and-color-for-google-play-games-leaderboard-achievement