Full screen Android phone app doesn't show full screen on Google TV
The following simple layout shows full screen on an Android phone, but not on Google TV where it it shows on only a part of the TV screen (top half and middle third) and there's some sort of wallpaper on the rest of it (just saying in case it's not that usual, documentation is rare as far as I could see).
<?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>
The problem isn't coming fom the video widget either, it's 开发者_JS百科the same if I remove it, add a TextView instead, try fill/match parent, etc...
Can anyone assist me with identifying the cause of the issue?
Try setting your application or activity theme to
android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen"
Try add element min SDK in AndroidManifest.xml
Exp: <uses-sdk android:minSdkVersion="7" />
Remove the <supports-screens/>
tag from the AndroidManifest.
精彩评论