我可以只在 HDMI 屏幕上翻转 Android 应用程序吗?
我有一个 Android 应用程序,必须限制为纵向模式,现在我必须通过 HDMI 电缆将其输出到屏幕。问题是信号与屏幕的高度匹配,但宽度是黑框的。我正在使用的屏幕无法翻转到垂直,所以我必须通过代码来完成。我基本上需要翻转显示 HDMI 输出。 我知道这可以在 iPad 上完成,但我不知道如何在 android 上完成,或者是否可以完成。 那么有什么想法吗?
I have an android app that has to be restricted to portrait mode, and now I have to output it to a screen via HDMI cable. The problem is that the signal matches the screen's height but the width is letterboxed. The screen I'm using can't flip to vertical, so I have to do it by code. I basically need to display the HDMI output flipped.
I know this can be done on the iPad, but I don't know how to do it on android, or whether it can even be done.
So any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看此链接
您可能需要更具体地 :EXTDISP_STATUS_CONNECTION
如果这不起作用,您可以随时添加一个菜单选项来切换分辨率。
You may want to look at this link
More specifically: EXTDISP_STATUS_CONNECTION
If that doesn't work, you could always just put a menu option to switch resolutions.
简而言之,不,这是不可能的,实际上在摩托罗拉设备上我会有更多的选择。但无论如何,如果有人有兴趣知道的话,我所做的是创建一个横向应用程序并编写 UI,使其显示为纵向,用户输入很麻烦,但总的来说它有效。
Short anwer, no it can't be done, indeed on a Motorola device I would have had more of a choice. But anyway, if anyone's interested to know, what I did was create a landscape app and compose the UI so it appeared portrait, user input was a drag, but overall it worked.
您可以创建一个名为 tvdpi 的文件夹并将布局放在其中
You can create a folder named tvdpi and put your layouts on it