Will <include> override the layout_width/layout_height value?
Posted
by Johnny
on Stack Overflow
See other posts from Stack Overflow
or by Johnny
Published on 2010-05-10T08:41:53Z
Indexed on
2010/05/10
8:44 UTC
Read the original article
Hit count: 312
android
I have a layout xml file named my_layout.xml, in which the root view's layout_width and layout_height has been specified as 200px.
<com.jlee.demo.MyLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="200px"
android:layout_height="200px">
If I used this xml to be included in another xml, and specify the layout_width and layout_height as 100px.
<include layout="@layout/my_layout"
android:layout_width="100px"
android:layout_height="100px"/>
What would be the real width/height of my_layout?
© Stack Overflow or respective owner