Doubt in drawing custom view using android
<p>I am drawing a custom view in my application which basically takes arguments(XML ) as the text to display and then keeps on rotating it infinitely.</p>

<p>While I was making this control I had a few doubts which I want to ask: </p>

<ul>
<li><p>I have made 2 of my stylable attributes which I have declared in the <code>attrs.xml</code> file. These attributes are to set the width and the width of the circle used in my control. These values I would use in the ondraw method and the onmeasure method. I ran my program by declaring just these but there was an error which asked me to put <code>android:width and android:height</code> attributes. My question is why would I need those if I am already using my custom attributes to define the height and the width of my view</p></li>
<li><p>I am coding on a mac. Now when I was making my <code>attrs.xml</code> file, to get the autocomplete list which we usually get by ctrl+space was not showing up. Why is that. For e.g., i wanted to know what values can I give the format attribute of my custom attribute that like I am demostrating in the following: 
<code>&lt;attr name ="somename" format="value I wanted to find out through autocomplete"&gt;</code> . Why is the autocomplete not popping up? It does pop up when I am making a.java file.</p></li>
<li><p>In my <code>ondraw()</code> method I wanted to draw a circle. Now for this I would require the co-ordinates of the center of the circle. So what I do is put 0, 0. But this is not correct. I want the circle to be at the center of the parent view it is in. So if my view is in a hierarchy I want it to respect that. I want to give the co-ordinates relative to the parent view. What is happeining right now is that it is being drawn at the top left corner of my screen. This is what I don't want. What do I do to achieve this? </p></li>
</ul>
