i am using android:layout_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?
Asked
Active
Viewed 1,728 times
1 Answers
0
Use
public void setMargins (int left, int top, int right, int bottom)

jacknad
- 13,483
- 40
- 124
- 194
-
@Thanks Jackn,i want to display all images in center position in screen,in case image size is 50X50,this image display center in screen,other wise other images are display in it's original view.How it is possible in android – sivaraj Sep 06 '10 at 14:10