全屏Android手机应用程序无法在Google TV上全屏显示

时间:2011-08-12 00:45:41

标签: android-layout google-tv

以下简单布局在Android手机上显示全屏,但在Google TV上则不显示 它仅显示在电视屏幕的一部分(上半部分和中间三分之一)上,其余部分都有某种壁纸(只是说如果不是那么平常,据我所知,文档很少见。) / p>

<?xml version="1.0" encoding="utf-8"?> 
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
        android:layout_width="match_parent" 
        android:layout_height="match_parent"> 
        <com.orb.androidplayer.view.VideoSurfaceView 
            android:id="@+id/video_view" 
            android:layout_width="match_parent" 
            android:layout_height="match_parent"/> 
    </RelativeLayout>

问题不在于视频小部件,它就是 如果我将其删除,请添加TextView,尝试填充/匹配父级等等...

有人可以协助我找出问题的原因吗?

3 个答案:

答案 0 :(得分:2)

尝试将您的应用或活动主题设置为

机器人:主题= “@机器人:风格/ Theme.Holo.NoActionBar.Fullscreen”

答案 1 :(得分:1)

尝试在AndroidManifest.xml中添加元素min SDK Exp:<uses-sdk android:minSdkVersion="7" />

答案 2 :(得分:0)

从AndroidManifest中删除<supports-screens/>标记。

相关问题