Android活动无法填充WVGA屏幕

4

我正在开发一个带有简单LinearLayout和按钮的Activity。当我在我的硬件设备上尝试运行该Activity(WVGA 480x800屏幕),该Activity只填充了标准大小(480x320),而操作系统本身则填充了整个屏幕。

可能存在的问题是什么呢?

谢谢!

<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:background="#FFF"                    android:fitsSystemWindows="true">  
        <Button android:text="@+id/Button01" android:id="@+id/Button01"                          android:layout_width="wrap_content" 
                android:layout_height="wrap_content"></Button>
</LinearLayout>
1个回答

6

你是对的!在清单文件中指定屏幕尺寸解决了我的问题,谢谢!!! - Matx

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接