我有一个名为my_layout.xml的布局xml文件,其中根视图的layout_width和layout_height被指定为200px。将<include>覆盖layout_width/layout_height的值吗?
<com.jlee.demo.MyLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="200px"
android:layout_height="200px">
如果我用这个xml包含在另一个xml中,并指定layout_width和layout_height为100px。
<include layout="@layout/my_layout"
android:layout_width="100px"
android:layout_height="100px"/>
my_layout的真实宽度/高度是多少?
明白了,谢谢。 – Johnny 2010-05-10 13:07:48
重写'android:layout_below'似乎不起作用... – jul 2011-05-27 13:42:54