Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. RelativeLayout rl = new RelativeLayout(this);
  2. LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
  3. rl.setLayoutParams(params);
  4. Button button = new Button(this);
  5. button.setText("Previous");
  6. LayoutParams params1 = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
  7. params1.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
  8. button.setLayoutParams(params1);
  9. rl.addView(button);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement