- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在开发一个带有按钮的简单 LinearLayout 的 Activity 。当我在我的硬件(WVGA 480x800 屏幕)上尝试 Activity 时, 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>
最佳答案
我相信您必须在 list 文件中指定您希望允许应用程序缩放到更大屏幕的尺寸。
参见:http://developer.android.com/guide/practices/screens_support.html#attrs了解更多信息。
关于<supports-screens>
的部分 list 中的属性可能包含您要查找的内容。
关于Android Activity 不会填满 WVGA 屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2510354/
我正在开发一个带有按钮的简单 LinearLayout 的 Activity 。当我在我的硬件(WVGA 480x800 屏幕)上尝试 Activity 时, Activity 仅填充标准尺寸 (48
我正在设计一个在 Android 浏览器中显示的 HTML 页面。考虑这个简单的示例页面: Simple! 在标准 HVGA 手机 (320x480) 上看起来不错,但在 HDPI WVG
我需要在 Eclipse 的 android 虚拟设备管理器中创建多个设备。有一个字段“屏幕比例”有两个选项:长和不长。 Documentation说 "long:长屏,如WQVGA、WVGA、FWV
我正在尝试使用STM32F4上的LCD-TFT显示 Controller (LTDC 18位)在7英寸TFT-LCD显示器(MCT070PC12W800480LML)上输出一些数据。 LTDC 接口(
我遇到的问题是,当我运行 FWVGA 或 WVGA 大小的模拟器时,它有时会以 MDPI 大小而不是 HDPI 大小运行。这是一个带图片的例子 http://wonton-games.blogspot
我已经为 HVGA 和 WVGA (hdpi) 尝试了 XML 正常布局,但是当我在 AVD 中尝试时,结果不同。任何人都可以帮助我吗?谢谢 最佳答案 要定位 HVGA 320*480 使用: lay
我知道这个问题既古老又基本,但对于设计 WVGA 和 FWVGA(大 mdpi 480 X 800)屏幕的布局,我仍然感到非常困惑。目前,对于 hdpi、xhdpi、7 英寸和 10 英寸平板电脑,我
程序加载正常,我可以浏览几个屏幕,但是当 main.xml 尝试加载时,程序仅在 api 14 上崩溃。 日志输出: 04-26 09:02:14.290: E/AndroidRuntime(566)
我是一名优秀的程序员,十分优秀!