Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. ViewGroup.MarginLayoutParams params =
  2. (ViewGroup.MarginLayoutParams)view.getLayoutParams();
  3. params.topMargin = ...; // etc
  4. // or
  5. params.setMargins(...);
  6.  
  7. view.setLayoutParams(params);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement