Setting Margins Dynamically In Code - Android
I have an activity which contains only ScrollView and a TableLayout in it. In my code i'm adding tablerows, everything works fine except margins - it's not working (nothing happens
Solution 1:
use TableLayout.LayoutParams
TableLayout.LayoutParams rowparams = new TableLayout.LayoutParams(TableLayout.LayoutParams.FILL_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);
Post a Comment for "Setting Margins Dynamically In Code - Android"