title: How to resize a custom view programmatically?
body: <p>I am coding a custom view, extended from RelativeLayout, and I want to resize it programmatically, How can I do?</p>
  
  <p>the custom view Class is something like:</p>
  
  <pre><code>public ActiveSlideView(Context context, AttributeSet attr){
          super(context, attr);
          LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          if(inflater != null){       
              inflater.inflate(R.layout.active_slide, this);
          }
  </code></pre>