Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

amatkivskiy/MaterialDrawer-Xamarin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No Maintenance Intended

DEPRECATED

⚠️ This is no longer supported - unfortunately, I am not in the Xamarin development anymore. ⚠️

MaterialDrawer-Xamarin

Join the chat at https://gitter.im/amatkivskiy/MaterialDrawer-Xamarin

Nuget badge

Xamarin bindings for https://github.com/mikepenz/MaterialDrawer

Download

NuGet Package

Issues

Due to different generic type systems in C# and Java fluent api is not available for:

  • PrimaryDrawerItem
  • SecondaryDrawerItem
  • ToggleDrawerItem
  • SwitchDrawerItem

Simple workaround is to replace

new PrimaryDrawerItem().WithName(Resource.String.drawer_item_compact_header).WithIcon(GoogleMaterial.Icon.GmdWbSunny).WithIdentifier(1).WithCheckable(false);

with

var header = new PrimaryDrawerItem();
header.WithName(Resource.String.drawer_item_compact_header);
header.WithIcon(GoogleMaterial.Icon.GmdWbSunny);
header.WithIdentifier(1);
header.WithCheckable(false);