Google Play游戏服务和LibGDX,如何在不显示标题栏的情况下进行集成?

Google Play游戏服务和LibGDX,如何在不显示标题栏的情况下进行集成?,libgdx,screen-orientation,titlebar,google-play-games,Libgdx,Screen Orientation,Titlebar,Google Play Games,使用此代码时成功连接: 但是,我现在看到了android标题栏。我已经尝试确定到底是什么导致了标题栏的显示(并且我使用了教程中的代码) 我认为这是因为在混合中有一个MainActivity构造函数,不知何故,它绕过了请求noTitle的LibGDX调用 因此,我下一步尝试在我的清单中添加NoTitleBar的主题功能,这是可行的,但不知怎的,我现在发生了方向变化(清单中并没有这么说) 有人能看到我需要在我的主项目或Android项目中做些什么吗 1) 没有标题栏 2) 不允许方向改变 3) 有

使用此代码时成功连接:

但是,我现在看到了android标题栏。我已经尝试确定到底是什么导致了标题栏的显示(并且我使用了教程中的代码)

我认为这是因为在混合中有一个MainActivity构造函数,不知何故,它绕过了请求noTitle的LibGDX调用

因此,我下一步尝试在我的清单中添加NoTitleBar的主题功能,这是可行的,但不知怎的,我现在发生了方向变化(清单中并没有这么说)

有人能看到我需要在我的主项目或Android项目中做些什么吗

1) 没有标题栏 2) 不允许方向改变 3) 有谷歌游戏服务的连接

这是舱单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pgs.libgdx.liars.dice"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="17" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >

    <meta-data android:name="com.google.android.gms.games.APP_ID"
        android:value="@string/app_id" />

    <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
        android:screenOrientation="landscape"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

</manifest>

其他一切都与使用gdx setup ui.jar设置LibGDX项目时完全相同。清单文件的语法有问题,在这一行:

android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >

行末尾的尖括号不应该在那里。

在查看logcat时,我确实看到它在哪里提到“内容已显示,无法请求功能”\u NOTITLE。我尝试查看后端,但看不出为什么会出现这样的情况。没有任何内容被调用,除非(我想)由于调用MainActivity,清单被android使用,但是为什么定向不会被锁定?呃。。。我在Eclipse中看不到任何东西(无论如何,没有错误报告)现在可以像冠军一样工作了!
public LiarsDiceGame(){

}

public LiarsDiceGame(GoogleInterface anInterface ) {
    platformInterface = anInterface;
    //platformInterface.Login();
}

@Override
public void create() {      
    float w = Gdx.graphics.getWidth();
    float h = Gdx.graphics.getHeight();

    camera = new OrthographicCamera(1, h/w);
    batch = new SpriteBatch();

    texture = new Texture(Gdx.files.internal("data/libgdx.png"));
    texture.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    TextureRegion region = new TextureRegion(texture, 0, 0, 512, 275);

    sprite = new Sprite(region);
    sprite.setSize(0.9f, 0.9f * sprite.getHeight() / sprite.getWidth());
    sprite.setOrigin(sprite.getWidth()/2, sprite.getHeight()/2);
    sprite.setPosition(-sprite.getWidth()/2, -sprite.getHeight()/2);
}
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >