how to set image's margin top using coding not xml in android
i am using android:la开发者_StackOverflowyout_marginTop="100dip" in my imageview,i want to set margin top to each image depending its height using coding not using xml,how can i set image's margintop?
Use
public void setMargins (int left, int top, int right, int bottom)
精彩评论