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
Post a Comment