[mono-android] Java Interface type to c# binding

venkatesh venkatesh.r at sierratec.com
Thu Dec 5 05:42:19 UTC 2013


Hi,

kindly give me some valuable suggestions on this issue.

//Java Class on List View

// Set a listener to be invoked when the list should be refreshed. 
                ((PullAndLoadListView) getListView()) 
                                .setOnRefreshListener(new
OnRefreshListener(){} )

//C# implementation on listview

listview.*setOnRefreshListener*(new OnRefreshListener() {} )

Error thrown  calling setOnRefreshListener on listview.

'Com.Costum.Android.Widget.PullAndLoadListView' does not contain a
definition for '*SetOnRefreshListner*' and no extension method
'SetOnRefreshListner' accepting a first argument of type
'Com.Costum.Android.Widget.PullAndLoadListView' could be found (are you
missing a using directive or an assembly reference?)

Please guide me on this issue since  i am struggeld to solve this issue.

For your reference 

api file  :  api.xml
<http://mono-for-android.1047100.n5.nabble.com/file/n5713631/api.xml>  

Generated c# file  :  Com.Costum.Android.Widget.PullToRefreshListView.cs
<http://mono-for-android.1047100.n5.nabble.com/file/n5713631/Com.Costum.Android.Widget.PullToRefreshListView.cs>  



--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Java-Interface-type-to-c-binding-tp5713630p5713631.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list