Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LayoutParams params = new LayoutParams(
- LayoutParams.WRAP_CONTENT,
- LayoutParams.WRAP_CONTENT
- );
- params.setMargins(left, top, right, bottom);
- yourbutton.setLayoutParams(params);
- ((LinearLayout.LayoutParams)someView.getLayoutParams()).marginBottom = 150;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement