Android Studio Set Weight Layout Programatically

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);

Comments

Popular posts from this blog

Find Backlink From Google Dork

Ringo Step Shotter Tutorial (CP WP)

List of weapon buff materials, effects and how it can be durango wild lands