更改操作栏的样式和颜色的谷歌玩游戏排行榜,成就等? [英] Change action bar style and color for Google Play Games Leaderboard, Achievements, etc.?

查看:204
本文介绍了更改操作栏的样式和颜色的谷歌玩游戏排行榜,成就等?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌玩游戏的API为我的应用程序。当我用下面的推出成就显示我的应用程序:

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?

推荐答案

您不能自定义屏幕。该屏幕看起来像谷歌玩游戏,不是一个具体的游戏,因为这为用户提供了熟悉的感觉,这一点很重要 - 这屏幕是跨越几个他们玩游戏的相同

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.

如果你想拥有一个完全定制的身临其境的体验,您可以使用原始数据的API。例如,调用<一个href=\"http://developer.android.com/reference/com/google/android/gms/games/GamesClient.html#loadAchievements%28com.google.android.gms.games.achievement.OnAchievementsLoadedListener,%20boolean%29\"相对=nofollow> GamesClient.loadAchievements()加载成就和自定义用户界面显示出来。

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.

这篇关于更改操作栏的样式和颜色的谷歌玩游戏排行榜,成就等?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆