On Dec 6, 2013, at 6:10 AM, venkatesh <venkates...@sierratec.com> wrote:
> As you said , i have attached Diagnostic build output for binding project.

Here's the problem:

> 1>JARTOXML : warning J2XA005: missing class error was raised while reflecting 
> setOnRefreshListener [public void 
> com.costum.android.widget.PullToRefreshListView.setOnRefreshListener(com.costum.android.widget.PullToRefreshListView$OnRefreshListener)]
>  : com/android/widget/R

Rephrased, our "jar2xml" program (what generates api.xml) wanted the 
com.android.widget.R type while processing the setOnRefreshListener() method, 
and the com.android.widget.R type doesn't exist (it's generated later).

I think this is a variation on: 
https://bugzilla.xamarin.com/show_bug.cgi?id=15885

Which isn't entirely gratifying...

You should be able to workaround this by editing Transforms\Metadata.xml, and 
adding the following (ugly) XML fragment:

        <add-node 
path="/api/package[@name='com.costum.android.widget']/class[@name='PullToRefreshListView']">
                <method name="setOnRefreshListener" return="void" 
abstract="false" native="false" synchronized="false" static="false" 
final="false" deprecated="not deprecated" visibility="public" >
                        <parameter name="listener" 
type="com.costum.android.widget.PullToRefreshListView.OnRefreshListener"/>
                </method> 
        </add-node>

The above "manually" declares the setOnRefreshListener() method on the 
PullToRefreshListView type, and should allow the generator to bind the 
setOnRefreshListener() method.

Thanks,
- Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to