android - Why this method call can not be converted into lambda? -


consider following code:

recyclerview.addonscrolllistener(new recyclerview.onscrolllistener() {             @override             public void onscrolled(recyclerview recyclerview, int dx, int dy) {                 //some code here             }         }); 

why can not translated this:

recyclerview.addonscrolllistener((recyclerview, dx, dy) -> {     // code here }); 

i'm using retrolambda in androidstudio.

because recyclerview.onscrolllistener abstract class , has more methods onscrolled.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -