Skip to content

Can't use TabLayout.IOnTabSelectedListener2 #590

Open
@PureWeen

Description

@PureWeen

Xamarin.Android Version (eg: 6.0):

Tried with 9.0 and 10.0

Operating System & Version (eg: Mac OSX 10.11):

Mac OSX 10.15.3

Support Libraries Version (eg: 23.3.0):

Android X only

Describe your Issue:

If you implement the following interface

TabLayout.IOnTabSelectedListener2

You'll get the following exception

/Users/shane/Projects/AxTabError/obj/Debug/android/src/crc64f10a0ade51b9bb29/MainActivity.java(8,8): Error JAVAC0000:  error: BaseOnTabSelectedListener cannot be inherited with different arguments: <com.google.android.material.tabs.TabLayout.Tab> and <>
public class MainActivity
 (JAVAC0000) (AxTabError) javac

I first noticed this error when updating to Google.Android.Material 1.1.0-rc2 because on that version TabLayout.IOnTabSelectedListener is marked obsolete so I implemented TabLayout.IOnTabSelectedListener2

But this same exception happens on 1.0.0-preview02

Steps to Reproduce (with link to sample solution if possible):

AxTabError.zip

Metadata

Metadata

Assignees

Labels

callable-wrappersIssues with Java Callable Wrappers

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions