friends,
i want to set layout_marginBottom using java code or dynamically
in list view or linearlayout
any one guide me how to achieve this?
any help would be appreciated.
friends,
i want to set layout_marginBottom using java code or dynamically
in list view or linearlayout
any one guide me how to achieve this?
any help would be appreciated.
For ListView, there is much more simpler method to change margin by Programmatically
But for LinearLayout, you can set margin from @UMAR answer. Have fun. @.@
to change margin dynamically using the animation:
You can use setMargins. Look at official documentation:
http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#setMargins(int,%20int,%20int,%20int)
Ger