Android 填充父项而不是填充父项?
我正在使用谷歌在IO上发布的新的10.1 galaxy标签。我不熟悉android布局,但eclipse中的图形布局看起来不错,但我的应用程序没有填充选项卡上的父级 这是我的Android 填充父项而不是填充父项?,android,android-layout,Android,Android Layout,我正在使用谷歌在IO上发布的新的10.1 galaxy标签。我不熟悉android布局,但eclipse中的图形布局看起来不错,但我的应用程序没有填充选项卡上的父级 这是我的main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="v
main.xml
:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/red"
android:layout_width="fill_parent" android:layout_height="fill_parent">
</LinearLayout>
这就是我看到的将下一个标记添加到您的
AndroidManifest.xml
<manifest>
...
<supports-screens
android:resizeable="true" />
</manifest>
...
您可以找到有关此标签的更多信息。也许对屏幕兼容模式的解释有助于解决此问题:
在您给它的链接中,它说默认情况下这应该是正确的,并使它听起来像是从1.6开始就被弃用了——事实上它说“您不应该使用它”。为什么上面的用户没有默认设置(至少使用安卓3)?