我有一个名为my_layout.xml的布局xml文件,其中根视图的layout_width和layout_height已指定为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">
Run Code Online (Sandbox Code Playgroud)
如果我使用此xml包含在另一个xml中,并将layout_width和layout_height指定为100px.
<include layout="@layout/my_layout"
android:layout_width="100px"
android:layout_height="100px"/>
Run Code Online (Sandbox Code Playgroud)
my_layout的实际宽度/高度是多少?
| 归档时间: |
|
| 查看次数: |
7872 次 |
| 最近记录: |