改变谷歌Play游戏服务的通知在Android上的立场 [英] Change the position of Google Play Game Services notification on Android

查看:291
本文介绍了改变谷歌Play游戏服务的通知在Android上的立场的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌Play游戏服务为我的Andr​​oid游戏。有一个游戏不与成绩通知一起顺利。这是一个无尽的游戏,用户必须集中精力并保持关注,以获得更多的分数。成就通知覆盖,这是非常恼火给用户的屏幕中的重要部分。

I'm using Google Play Game Services for my Android games. There is one game doesn't go along well with the achievements notification. It's an endless game and the user have to concentrate and stay focus to gain more score. The achievements notification cover the important portion of the screen which is very annoyed to the user.

我看得出来,它可能适用于iOS这样做的:<一href=\"https://developers.google.com/games/services/ios/achievements#changing%5fthe%5fnotification%5flocation\" rel=\"nofollow\">https://developers.google.com/games/services/ios/achievements#changing_the_notification_location.

I could see that it's possible to do so for iOS: https://developers.google.com/games/services/ios/achievements#changing_the_notification_location.

有什么在Android的相似?

Is there anything similar in Android?

推荐答案

您可以使用 setGravityForPopups 方法从的游戏类

Games.setGravityForPopups(GoogleApiClient apiClient, int gravity)

例如,

Games.setGravityForPopups(getApiClient(), Gravity.TOP | Gravity.CENTER_HORIZONTAL);

这篇关于改变谷歌Play游戏服务的通知在Android上的立场的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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