我想以编程方式做这样的事情 -
<RelativeLayout1>
<LinearLayout name = 1>
<LinearLayout below = 1>
<RelativeLayout1>
我尝试这样做:
LinearLayout.LayoutParams params = (LinearLayout.LayoutParams)mButtonContainer.getLayoutParams();
参数有weight
字段,width
字段,但没有layout_below
...感谢您的帮助!