Overide methods when instantiated using findviewbyid
<p>I had a question on overriding methods.
When i instantiate a view i'm having 2 options.</p>

<p>1.Instantiate view programatically.</p>

<pre><code>View view = new View( .... ){
      onDraw(){

         .......
      }

 };
</code></pre>

<p>2.Instantiate view from layout.</p>

<pre><code>View view = findViewbyid(...){

        onDraw(){
           .......
        }
};
</code></pre>

<p>My question is, is there any possibility to override methods as shown in 2nd option.?</p>

<p>Thanks &amp; Regards,</p>

<p>Sha.</p>
