- 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
andOnAccountHeaderSelectionViewClickListener.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 theonProfileChanged
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