Adding the LayoutParams to the control
LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT);
params.leftMargin=22;
params.height=20;
params.width=10;
LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT);
params.leftMargin=22;
params.height=20;
params.width=10;
No comments:
Post a Comment