Is there even a term for this? It has completely escaped me.
Example:
TableLayout tableLayout = new TableLayout(context){
@Override
protected void onDetachedFromWindow(){
super.onDetachedFromWindow();
getRidOfDialog();
}
};
That is an inner class defined on method's parameter. I think that the term you're looking for is "Anonymous inner class".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With