天天看點

LayoutParams 動态設定布局參數

LinearLayout linearLayout = new LinearLayout(context);

LinearLayout.LayoutParams linearLayoutParas = new LinearLayout.LayoutParams(

LinearLayout.LayoutParams.FILL_PARENT,

LinearLayout.LayoutParams.WRAP_CONTENT);

linearLayout.setLayoutParams(linearLayoutParas);

上一篇: eclipse + php

繼續閱讀