I have added a linearlayout
in a linearlayout
dynamically using this code.
LinearLayout root = (LinearLayout) findViewById(R.id.root);
View child = inflater.inflate(R.layout.childrow, null);
root.addView(child , index++);
I want to add bottom margin in childview. Can I do this dynamically?