Change action bar style and color for Google Play Games Leaderboard, Achievements, etc.?

会有一股神秘感。 提交于 2019-12-11 16:14:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!