【问题标题】:Implementing g+1 and google circle in LibGdx在 LibGdx 中实现 g+1 和 google circle
【发布时间】:2015-11-08 02:34:49
【问题描述】:

在我的新游戏中,我尝试使用 g+1 和 google Plus 圈子。我确实在 Android 中找到了很多教程,但出于我的目的,甚至没有一个使用 Android + LibGdx 的教程。

我在使用 g+1 按钮时面临的主要问题是注释气泡。气泡显示已经为应用 +1 的人数。如何获取注解值?

是否有在 LibGdx 中实现 g+1 和 google 圈子功能的指南?

【问题讨论】:

标签: android libgdx google-plus google-play-services google-plus-one


【解决方案1】:

通常所有使用 Android OpenGL 的游戏引擎都使用GLSurfaceView(或一般SurfaceView)。与所有其他视图(EditTextButton 等)一样,此视图属于常规 Android 视图类型。因此,您可以安排它 与常规 Andorid 布局视图中的其他视图并排(例如 LinearLayoutRelativeView)。

在您的情况下,您可以使用 FrameLayoutRelativeLayout 覆盖这两个视图(LibGDX 的 SurfaceView 和 Google+1 视图)。

因此,类似于下面的问题,您可以在屏幕上任意位置添加此 G+1 按钮。

Can I have Android Views overlayed on top of the libgdx GL surface?

【讨论】:

  • 谢谢,我会试试这个
猜你喜欢
  • 2011-12-25
  • 2022-10-06
  • 1970-01-01
  • 1970-01-01
  • 2023-02-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多