我正在修改现有应用程序以使用 ADT-1 开发工具包在 Android TV 上工作。
在 Android TV 上安装时,原始应用程序布局的外边缘被剪裁。
然后我点击此链接并为布局的根设置过扫描。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/base_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginTop="27dp"
android:layout_marginLeft="48dp"
android:layout_marginRight="48dp"
android:layout_marginBottom="27dp" >
.....
</LinearLayout>
但结果如下所示。布局的根源是边距,它不会填满屏幕(红色矩形区域)。
根布局完全填充屏幕的过扫描边距像素是多少?提前致谢。