小编Jig*_*dya的帖子

默认情况下,Firebase 动态链接始终使用第一个域 URL 前缀来发送身份验证电子邮件

我已经在我的 Android 应用程序中集成了 firebase 身份验证和电子邮件。我在动态链接部分有两个域 URL 前缀。默认情况下,Firebase 始终发送带有第一个域 url 前缀的链接。我尝试通过这种方法在代码中设置域 url 前缀 -

  actionCodeSettings.setDynamicLinkDomain(getString(R.string.dynamic_link_url))
Run Code Online (Sandbox Code Playgroud)

但它给出错误提供的动态链接域未配置或授权当前项目请建议实现此目的的正确方法。提前致谢。

android firebase firebase-authentication firebase-dynamic-links

6
推荐指数
1
解决办法
1266
查看次数

无法在libgdx游戏的菜单屏幕上绘制任何类型的按钮(android)

我想在我的游戏的主屏幕上显示文本按钮以进一步导航.但我无法这样做.我提到libgdx文档,但似乎没有任何工作.我有一个图像作为游戏背景,并希望在它上面显示按钮.

这就是我想要的:在此输入图像描述 下面是我的代码.亲切的帮助.谢谢.

public void create(){

            stage = new Stage();
            Gdx.input.setInputProcessor(stage);

            Skin skin = new Skin();
            skin.add("logo", new Texture("ic_launcher.png"));

            Pixmap pixmap = new Pixmap(1, 1, Format.RGBA8888);
            pixmap.setColor(Color.WHITE);
            pixmap.fill();
            skin.add("white", new Texture(pixmap));

            // Store the default libgdx font under the name "default".
            skin.add("default", new BitmapFont());

            // Configure a TextButtonStyle and name it "default". Skin resources are stored by type, so this doesn't overwrite the font.
            TextButtonStyle textButtonStyle = new TextButtonStyle();
            textButtonStyle.up = skin.newDrawable("white", Color.DARK_GRAY);
            textButtonStyle.down = skin.newDrawable("white", Color.DARK_GRAY);
            textButtonStyle.checked = skin.newDrawable("white", …
Run Code Online (Sandbox Code Playgroud)

android button libgdx

5
推荐指数
1
解决办法
3541
查看次数

暂停/恢复Android的简单Libgdx游戏

目前我正在尝试使用libgdx为Android平台实现简单游戏.我已经实现了游戏,但不知道如何根据用户输入暂停和恢复游戏.提示想法以及实现相同的一些实用代码.我使用的是libgdx库中演示的简单游戏代码.谢谢.

这是代码:

public class Drop implements ApplicationListener {
   Texture dropImage;
   Texture bucketImage;
   Sound dropSound;
   Music rainMusic;
   SpriteBatch batch;
   OrthographicCamera camera;
   Rectangle bucket;
   Array<Rectangle> raindrops;
   long lastDropTime;

   @Override
   public void create() {
      // load the images for the droplet and the bucket, 64x64 pixels each
      dropImage = new Texture(Gdx.files.internal("droplet.png"));
      bucketImage = new Texture(Gdx.files.internal("bucket.png"));

      // load the drop sound effect and the rain background "music"
      dropSound = Gdx.audio.newSound(Gdx.files.internal("drop.wav"));
      rainMusic = Gdx.audio.newMusic(Gdx.files.internal("rain.mp3"));

      // start the playback of the background music immediately
      rainMusic.setLooping(true);
      rainMusic.play(); …
Run Code Online (Sandbox Code Playgroud)

android libgdx

5
推荐指数
2
解决办法
2万
查看次数

检测Box2d和libgdx(android)中两个物体之间的碰撞

我是libgdx和Box2d引擎的新手,我正在开发一个使用它的游戏.我想检测两个物体之间的碰撞以执行某些功能.但是我不知道这样做的最佳方法,也希望得到点使用code.Kindly提供一些建议.我已经实现了ContactListener,但无济于事.

我正在使用代码作为参考.

谢谢

android box2d libgdx

3
推荐指数
1
解决办法
1万
查看次数