SyntaxFix
Write A Post
Hire A Developer
Questions
This should works to you
LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT LayoutParams.MATCH_PARENT); param.weight=1.0f;