Android get mobile phones screensize inside View
<p>I am trying to draw x and y axis line, but I can't get the user's phone size. How is this done inside a view? I have tried this:</p>

<pre><code>DisplayMetrics dm = new DisplayMetrics();
int width = dm.widthPixels;
int height = dm.heightPixels;
</code></pre>

<p>The entire Android class code is the following:
<a href="http://pastebin.com/J02irHd8" rel="nofollow">http://pastebin.com/J02irHd8</a></p>
