我希望能以编程方式包含布局,而不是像我的示例中使用XML标签 include
:
<include layout="@layout/message"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.75"/>
请问如何在程序中以编程方式更改此参数"layout="@layout/message"?
有任何想法吗?