title: Dynamically set the layout parameters of a relative layout
body: <p>I need help to dynamically change the layout parameters of a layout that already exists in the xml with some pre defined values for layout_width and layout_height . I want to give these some new values dynamically in my java code . i am using the following code but i get an error and don;t know how to proceed . please help </p>
  
  <pre><code>RelativeLayout layout = (RelativeLayout)findViewById(R.id.CompLayout);
  RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(10,10);
  layout.setLayoutParams(params);
  </code></pre>
  
  <p>Please help !!!! </p>