简体   繁体   English

Android Studio - 模拟器显示棕色 Header 且无法移除(胡椒)

[英]Android Studio - Emulator displaying Brown Header and Can't Remove (Pepper)

Header Image on Emulator Header 仿真器上的图像

Running my code in Android Studio displays a large brown header on the tablet and messes up the formatting of the actual Android Manifest design that I have created for that specific tablet size (1280 x 800).在 Android Studio 中运行我的代码会在平板电脑上显示一个大的棕色 header,并弄乱我为该特定平板电脑尺寸创建的实际 Android 清单设计的格式(11280 x 888)。

This is in regards to developing for the Pepper robot.这是关于为 Pepper 机器人开发的。 The image is attached above.图片附在上面。

Any help would be appreciated!!!任何帮助,将不胜感激!!! Thank you!谢谢!

This header is called the speech bar, and it is included in RobotActivity , to provide the user with feedback on Pepper's speech recognition and synthesis.这个 header 被称为语音条,它包含在RobotActivity中,为用户提供 Pepper 语音识别和合成的反馈。 You can configure it to change its appearance and position.您可以对其进行配置以更改其外观和 position。

My preferred parameters are IMMERSIVE and TOP我的首选参数是IMMERSIVETOP

class MyActivity : RobotActivity(), RobotLifecycleCallbacks {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setSpeechBarDisplayStrategy(SpeechBarDisplayStrategy.IMMERSIVE)
        setSpeechBarDisplayPosition(SpeechBarDisplayPosition.TOP)
        setContentView(R.layout.my_activity)

        QiSDK.register(this, this)
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM