Hi,

We have implemented the Pull to refresh and load more android library
project into xamarin application.
In android java project , we have an  OnRefreshListener interface.

/**
         * Register a callback to be invoked when this list should be refreshed.
         * 
         * @param onRefreshListener
         *            The callback to run.
         */
        public void setOnRefreshListener(OnRefreshListener onRefreshListener) {
                mOnRefreshListener = onRefreshListener;
        }

/**
         * Interface definition for a callback to be invoked when list should be
         * refreshed.
         */
        public interface *OnRefreshListener* {
                /**
                 * Called when the list should be refreshed.
                 * <p>
                 * A call to {@link PullToRefreshListView #onRefreshComplete()} 
is
                 * expected to indicate that the refresh has completed.
                 */
                public void onRefresh();

}

We need to call interface called OnRefreshListener on ListView in xamarin
application project.
But we could not able to call OnRefreshListener in C# code.

*Code snippets for java code to list view .*

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

                                        public void onRefresh() {
                                                // Do work to refresh the list 
here.
                                                new 
PullToRefreshDataTask().execute();
                                        }
                                });

But we need to call the above java code  to xamarin android in C#

Please suggest me on this.

Thanks








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

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to