如果我不包括在我的根布局的背景则呈现一切如我所料:在Android中包含背景可绘制foobars我的布局。想法为什么?
alt text http://dl.dropbox.com/u/299320/correct.png
但是,如果我添加了只有一行在后台添加则布局云完全失控:
alt text http://dl.dropbox.com/u/299320/foobared.png
的XML布局的相关位:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width ="fill_parent"
android:layout_height="fill_parent"
android:paddingRight ="20dip"
android:paddingLeft ="20dip"
android:gravity ="center_vertical"
android:background ="@drawable/main_background">
上面两个截图的唯一区别就是包含了android:background="@drawable/main_background"
。我会给你一个饼干,如果你能帮我在这里:)
截图已损坏。 – 2012-03-07 11:02:38
对我来说,它似乎在运行时看起来是正确的。布局只在设计师看来很糟糕。 – 2012-03-07 11:05:03