Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android studio setMargin

TextView txt = (TextView) findViewById(R.id.txt);
MarginLayoutParams marginParams = (MarginLayoutParams) txt.getLayoutParams();
marginParams.setMargins(left, top, right, bottom);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #studio #setMargin
ADD COMMENT
Topic
Name
3+8 =