c# - Xamarin android development, scroll view 'scrollchange' event when attached to delegate throws runtime error? -


my team working on xamarin android development. in view have scrollview , using 'scrollchange' event of scrollview detect scroll movement , performing required actions. works fine machine. when used same code on machine, getting run-time error follows:

unhandled exception: java.lang.classnotfoundexception: mono.android.view.view_onscrollchangelistenerimplementor 

after spending couple of hours, make few changes code , working fine. earlier using following code attach delegate.

scrollview scrollview1 = (scrollview)findviewbyid(resource.id.scrollview1);             scrollview1.scrollchange += scrollview1_scrollchange;   private void scrollview1_scrollchange(object sender, eventargs e)         {             scrollview scrollview = sender scrollview;              double scrollingspace = scrollview.getchildat(0).height - scrollview.height;              if (scrollingspace <= scrollview.scrolly) // touched bottom             {                 // things want                 toast.maketext(this, "you have reached bottom!", toastlength.short).show();             }         } 

now above code working on every machine not on machine. few machines throwing error mentioned above. altered delegate method params follows:

void scrollview1_scrollchange(object sender, view.scrollchangeeventargs e) 

now rest definition remains same. delegate works fine every machine.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -