0
<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
如何在代码中编写上述XML?动态设置布局
android.widget.LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(
LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 1);
对不对?
你试过了吗? – kcoppock 2013-03-05 22:57:31
你为什么问? – Simon 2013-03-05 22:57:46