Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android view set padding programmatically

myView.setPadding(left, top, right, bottom);
/* 	The params are int values (pixel). 
	If you want to use a different measure (i.e. dips), you have to 
	convert these values first!	*/
 
PREVIOUS NEXT
Tagged: #android #view #set #padding #programmatically
ADD COMMENT
Topic
Name
8+7 =