Java Bind Library for UI controls ?

RomanKaganRomanKagan USMember ✭✭
edited May 2013 in Xamarin.Android

Hi,
My question is how easy to bind ui custom controls created in Java, and if it is possible at all?

For example (I know there are other implementations), I've tried to bind" handmark pull to refresh library" and failed with a lot of errors.
Before I will go checking one by one, I just wanted to make sure there are no technical limitations or known issues.

Common errors I see are:

cannot change access modifiers when overriding 'protected' inherited member 'Android.Views.View.ContextMenuInfo'

return type must be 'Java.Lang.Object' to match overridden member

does not implement interface member 'Com.Handmark.Pulltorefresh.Library.Internal.IEmptyViewMethodAccessor.SetEmptyView(Android.Views.View)

Full log:

'BINDINGSGENERATOR : warning BG8C00: For type System.Byte, base interface System.IComparable`1<System.Byte> does not exist.'
'BINDINGSGENERATOR : warning BG8401: Skipping Com.Handmark.Pulltorefresh.Library.PullToRefreshBase.Refreshing, due to a duplicate field, method or nested type name'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshAdapterViewBase.cs(401,69,401,84): error CS0507: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshAdapterViewBaseInvoker.ContextMenuInfo': cannot change access modifiers when overriding 'protected' inherited member 'Android.Views.View.ContextMenuInfo'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshExpandableListView.cs(194,69,194,84): error CS0507: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshExpandableListView.ContextMenuInfo': cannot change access modifiers when overriding 'protected' inherited member 'Android.Views.View.ContextMenuInfo'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshExpandableListView.cs(209,71,209,92): error CS0508: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshExpandableListView.CreateRefreshableView(Android.Content.Context, Android.Util.IAttributeSet)': return type must be 'Java.Lang.Object' to match overridden member 'Com.Handmark.Pulltorefresh.Library.PullToRefreshBase.CreateRefreshableView(Android.Content.Context, Android.Util.IAttributeSet)'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshExpandableListView.cs(64,70,64,85): error CS0507: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshExpandableListView.InternalExpandableListView.ContextMenuInfo': cannot change access modifiers when overriding 'protected' inherited member 'Android.Views.View.ContextMenuInfo'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshExpandableListView.cs(11,24,11,50): error CS0535: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshExpandableListView.InternalExpandableListView' does not implement interface member 'Com.Handmark.Pulltorefresh.Library.Internal.IEmptyViewMethodAccessor.SetEmptyView(Android.Views.View)'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshGridView.cs(194,69,194,84): error CS0507: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshGridView.ContextMenuInfo': cannot change access modifiers when overriding 'protected' inherited member 'Android.Views.View.ContextMenuInfo'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshGridView.cs(209,61,209,82): error CS0508: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshGridView.CreateRefreshableView(Android.Content.Context, Android.Util.IAttributeSet)': return type must be 'Java.Lang.Object' to match overridden member 'Com.Handmark.Pulltorefresh.Library.PullToRefreshBase.CreateRefreshableView(Android.Content.Context, Android.Util.IAttributeSet)'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshGridView.cs(64,70,64,85): error CS0507: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshGridView.InternalGridView.ContextMenuInfo': cannot change access modifiers when overriding 'protected' inherited member 'Android.Views.View.ContextMenuInfo'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshGridView.cs(11,24,11,40): error CS0535: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshGridView.InternalGridView' does not implement interface member 'Com.Handmark.Pulltorefresh.Library.Internal.IEmptyViewMethodAccessor.SetEmptyView(Android.Views.View)'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshListView.cs(194,69,194,84): error CS0507: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshListView.ContextMenuInfo': cannot change access modifiers when overriding 'protected' inherited member 'Android.Views.View.ContextMenuInfo'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshListView.cs(209,61,209,82): error CS0508: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshListView.CreateRefreshableView(Android.Content.Context, Android.Util.IAttributeSet)': return type must be 'Java.Lang.Object' to match overridden member 'Com.Handmark.Pulltorefresh.Library.PullToRefreshBase.CreateRefreshableView(Android.Content.Context, Android.Util.IAttributeSet)'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshListView.cs(64,70,64,85): error CS0507: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshListView.InternalListView.ContextMenuInfo': cannot change access modifiers when overriding 'protected' inherited member 'Android.Views.View.ContextMenuInfo'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshListView.cs(11,24,11,40): error CS0535: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshListView.InternalListView' does not implement interface member 'Com.Handmark.Pulltorefresh.Library.Internal.IEmptyViewMethodAccessor.SetEmptyView(Android.Views.View)'

obj\Debug\generated\src\Com.Handmark.Pulltorefresh.Library.PullToRefreshWebView.cs(159,53,159,74): error CS0508: 'Com.Handmark.Pulltorefresh.Library.PullToRefreshWebView.CreateRefreshableView(Android.Content.Context, Android.Util.IAttributeSet)': return type must be 'Java.Lang.Object' to match overridden member 'Com.Handmark.Pulltorefresh.Library.PullToRefreshBase.CreateRefreshableView(Android.Content.Context, Android.Util.IAttributeSet)'

Posts

  • RomanKaganRomanKagan USMember ✭✭
  • ALANPEIALANPEI MYMember

    Try this in your metadata.xml







    protected
    protected

    protected

    protected
    protected

    java.lang.Object
    java.lang.Object
    java.lang.Object
    java.lang.Object

  • ALANPEIALANPEI MYMember

    Sorry on the reply above . Try this in your metadata.xml

  • ALANPEIALANPEI MYMember






    protected
    protected

    protected

    protected
    protected

    java.lang.Object
    java.lang.Object
    java.lang.Object
    java.lang.Object

  • ALANPEIALANPEI MYMember

    Try this:

  • ALANPEIALANPEI MYMember

    `





    protected
    protected

    protected

    protected
    protected

    java.lang.Object
    java.lang.Object
    java.lang.Object
    java.lang.Object

    `

  • ALANPEIALANPEI MYMember

    ``





    protected
    protected

    protected

    protected
    protected

    java.lang.Object
    java.lang.Object
    java.lang.Object
    java.lang.Object

  • StevenTheEvenStevenTheEven SEMember ✭✭✭

    You can edit your posts IF you do it within 60 minutes.

  • ALANPEIALANPEI MYMember

    Sorry I don't know how to post the code here but now I zipped it up the metadata.xml . Please refer to it in the attachment. First time posting here sorry.

  • RomanKaganRomanKagan USMember ✭✭

    Thanks a lot, Alan !!

Sign In or Register to comment.