title: Add Style after creating a View programmatically
body: <p>The Title says it all, hopefully.</p>
  
  <p>1) I create a View programmatically:</p>
  
  <pre><code>RelativeLayout rl = new RelativeLayout(this);
  </code></pre>
  
  <p>2) I want to add it to an existing LinearLayout and after that i want to add a Style to the RelativeLayout. Something like:</p>
  
  <pre><code>LinearLayout ll = (LinearLayout) findViewById(R.id.MyLinearLayout);
  RelativeLayout rl = new RelativeLayout(this);
  ll.addView(rl);
  //add Style to rl here
  </code></pre>
  
  <p>I can't find a way to do that!</p>
  
  <p>I know there are ways to add a Style programmatically. Something like:</p>
  
  <pre><code>RelativeLayout rl = new RelativeLayout(this, null, R.style.MyRelativeLayout);
  </code></pre>
  
  <p>But this will add the style before i've added the relativelayout to the linearlayout.
  Therefore the relativelayout isn't "printed" because how should he know that the linearlayout is his parent before i add it to the linearlayout.</p>
  
  <p>Does anybody has a way how to add a Style programmatically to a view after this view has been created and added to a parent?</p>
  
  <p>Hope you understand what i mean.</p>