/MaterialDrawer-Xamarin

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

Primary LanguageJavaApache License 2.0Apache-2.0

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);