I tried to make a new Relativelayout, I then created a button, finally I added this button to the layout.
but what does " setContentView " help to achieve?

Here is the code

```
RelativeLayout wassimLayout = new RelativeLayout(this);
Button redButton = new Button(this);
wassimLayout.addView(redButton);
setContentView(wassimLayout);

```

I don't know, but I feel it perhaps sets the buttons height, width and other characteristics to default. how do i prevent that?

Thanks