我正在寻找一种方法来以编程方式包含布局,而不是include像我的示例中那样使用XML标记 :
<include layout="@layout/message"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.75"/>
Run Code Online (Sandbox Code Playgroud)
需要以编程方式更改此参数" layout ="@ layout/message ".
知道怎么做吗?