github mikepenz/MaterialDrawer v2.6.0

latest releases: v9.0.2, v9.0.1, v9.0.0...
9 years ago
  • Load images via URL FIX #150
//initialize and create the image loader logic
//THIS IS REQUIRED AND WILL DEFINE THE LOADER LOGIC
DrawerImageLoader.init(new DrawerImageLoader.IDrawerImageLoader() {
    @Override
    public void set(ImageView imageView, Uri uri, Drawable placeholder) {
        Picasso.with(imageView.getContext()).load(uri).placeholder(placeholder).into(imageView);
    }

    @Override
    public void cancel(ImageView imageView) {
        Picasso.with(imageView.getContext()).cancelRequest(imageView);
    }
});
//After that you can just create profiles with urls as iamge
  • Modify the OnAccountHeaderListener.onProfileChanged and OnAccountHeaderSelectionViewClickListener.onClick events. They will now allow you to return an boolean.
    This boolean indicates if the event was consumed. Return false if you want the drawer to get closed. Also the onProfileChanged event will now contain a boolean
    variable which indicates if the clicked profile is the current profile.
  • Text is now always on the left FIX #136
  • You can now also set if your application has a translucent navigation bar FIX #155
  • Also some more fixes mentioned by @alorma

Don't miss a new MaterialDrawer release

NewReleases is sending notifications on new releases.