我有一個名爲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