emanuelbalea / MaterialDrawer

C# Xamarin binding for https://github.com/mikepenz/MaterialDrawer
MIT License
5 stars 1 forks source link

Missing interfaces #2

Open thaindq opened 7 years ago

thaindq commented 7 years ago

Hi, I'm trying to create an AccountHeader and get these errors

var profile = new ProfileDrawerItem().WithName("Mike Penz").WithEmail("mikepenz@gmail.com");
var headerResult = new AccountHeaderBuilder()
    .WithActivity(this)
    .AddProfiles(profile)
    .Build();

Reference to type 'IIdentifyable' claims it is defined in 'FastAdapter', but it could not be found Reference to type 'IExpandable' claims it is defined in 'FastAdapter', but it could not be found Reference to type 'IItem' claims it is defined in 'FastAdapter', but it could not be found

If I remove .AddProfiles(profile) they go away.

emanuelbalea commented 7 years ago

Not all methods are fluent due to the generic in Java not translating into c#. The addprofiles from memory is one of those so if you call them by themselves should be fine.

thaindq commented 7 years ago

Do you mean to call them like this? If so, I still got those errors.

var headerResult = new AccountHeaderBuilder();
headerResult.WithActivity(this);
headerResult.AddProfiles(profile);
headerResult.Build();
Tsukrov commented 7 years ago

Have the same error. Installing last version of FastAdapter fixes