Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RelativeLayout rl = new RelativeLayout(this);
- LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
- rl.setLayoutParams(params);
- Button button = new Button(this);
- button.setText("Previous");
- LayoutParams params1 = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
- params1.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
- button.setLayoutParams(params1);
- rl.addView(button);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement