How the Android application on the Google TV screen is displayed in the over-scanning area (youtube, why can't I?)

This is for Google TV ...

I went through the xml multiscreen layout and this is what I came up with:

in my layout file:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#000000" android:padding="0px" android:layout_marginTop="0px" android:layout_marginBottom="0px" android:layout_marginLeft="0px" android:layout_marginRight="0px" android:layout_weight="1" android:overScrollMode="never" > <SurfaceView android:id="@+id/surface" android:layout_width="1920dp" android:layout_height="1080dp" > </SurfaceView> <WebView android:layout_width="1920dp" android:layout_height="1080dp" android:id="@+id/webView" /> <TextView android:id="@+id/tv1" android:text=" " android:layout_width="4dp" android:layout_height="4dp"/> </RelativeLayout> 

put this in my manifest:

 <supports-screens android:xlargeScreens="true" /> 

added a “special sauce” to my java body.

 requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 

And I can display on the edge of my "allowed" display area just fine. but I'm limited to about 10% less at the edges of the screen than on youtube. The docs say "I am not allowed" to use this area, but it is clear that you and Netflix. How do they do it?

+4
source share

Source: https://habr.com/ru/post/1440669/


All Articles