Wednesday, 11 July 2012

Android Dynamic Setting margins,Height,width

TableLayout.LayoutParams tableRowParams=new

TableLayout.LayoutParams(TableLayout.LayoutParams.FILL_PARENT,TableLayout.LayoutParams.WRAP_CONTENT);
        int leftMargin=5;
        int topMargin=2;
        int rightMargin=10;
        int bottomMargin=2;
        tableRowParams.setMargins(leftMargin, topMargin, rightMargin, bottomMargin);

No comments:

Post a Comment