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