I had a question on overriding methods.
When i instantiate a view i’m having 2 options.
1.Instantiate view programatically.
View view = new View( .... ){
onDraw(){
.......
}
};
2.Instantiate view from layout.
View view = findViewbyid(...){
onDraw(){
.......
}
};
My question is, is there any possibility to override methods as shown in 2nd option.?
Thanks & Regards,
Sha.
No, the second option is not possible. However, you may create your custom class which
extends Viewand override whatever you want inside.