title: Android set height and width of Custom view programmatically
body: <p>I have created a custom view named <code>Graphview</code> . Here is the structure for the GraphView class.</p>
  
  <pre><code>public class GraphView extends View {
  
      public GraphView(Context context, float[] values, String title, String[] horlabels, String[] verlabels, boolean type) {
          super(context);
                  ........
     }
  
     ..................
     .................
  }
  </code></pre>
  
  <p>I have added the view in a tablerow using <code>addview()</code>. It is working fine. Now I want to set height and width for the <code>GraphView</code>. How to do that?</p>