
Android Studio Set Weight Layout Programatically
2020-03-08 / Kuswati
LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(
LayoutParams.MATCH_PARENT, //OR WRAP_CONTENT -> layout_width
LayoutParams.MATCH_PARENT, //OR WRAP_CONTENT -> layout_height
1.0f // layout_weight 1
);
YOUR_VIEW.setLayoutParams(param);

Android Studio Set Weight Layout Programatically
PermaLink: https://www.webmanajemen.com/2020/03/android-studio-set-weight-layout.html
Google Rich Snippets | Schema Markup Validator | Google Pagespeed Insight