MSMaterialDrawer

DonManfred

Expert
Licensed User
Longtime User
Is right icon, but seem that dont work.
Any idea ??
I checked it with my wrap.

The draweritem is changed in a timer tick (see badge and icon of TestC

Note that the drawer is NOT closed while timer runs... so you see the drawer changing the item
 

Attachments

  • Screenshot_20160604-004108.png
    Screenshot_20160604-004108.png
    164.7 KB · Views: 263
  • Screenshot_20160604-004117.png
    Screenshot_20160604-004117.png
    164.3 KB · Views: 251

MarcoRome

Expert
Licensed User
Longtime User
A step further... Icons seems to be working now

Compare the two images. You´ll see a similarity between your issue here.
And you´ll see it is working for me :)
B4X:
icon.icon("gmd_account_circle").color(Colors.Blue).contourColor(Colors.Red).drawContour(True).backgroundColor(Colors.White).iconOffsetXDp(8)

Really really GREAT work +80 ;) if I could also add (only) header (to add a background) would be at a great point.
 

AlexMaa

Member
Licensed User
Longtime User
It is something I do not understand.
but where to get library - msdynamicgridview, msmaterialdrawer, mscardview
 

ggpanta

Member
Licensed User
Longtime User
This is an amazing lib, I only got one question:
I am not able to update the description since I dont see a method for that, are you planning on adding that in a future release?
 

wimpie3

Well-Known Member
Licensed User
Longtime User
I think there are new Font Awesome icons available now. Would it be possible to update the library with them?
 

jazzzzzzz

Active Member
Licensed User
Longtime User
Any Idea how to remove the drawer from activity???? Activity.RemoveAllViews does not seem to work
 

Jose Luis Barajas

Member
Licensed User
Longtime User
Hello

Is there any way to hide or disable options on the menu?

For example: Enable this item?

MDB.AddSecondaryDrawerItem("Donate" ,s3.Drawable ,Null ,"" ,False, 5)

I mean at run time not design time!

Thanks
 

MhdBoy

Member
Licensed User
Longtime User
hi,
how i can load Profile icon from url
i see this code in Library Github(https://github.com/mikepenz/MaterialDrawer)
Load images via url
The MaterialDrawer supports fetching images from URLs and setting them for the Profile icons. As the MaterialDrawer does not contain an ImageLoading library the dev can choose his own implementation (Picasso, Glide, ...). This has to be done, before the first image should be loaded via URL. (Should be done in the Application, but any other spot before loading the first image is working too)

Code:
//initialize and create the image loader logic
DrawerImageLoader.init(new AbstractDrawerImageLoader() {
@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);
}

/*
@override
public Drawable placeholder(Context ctx) {
return super.placeholder(ctx);
}
@override
public Drawable placeholder(Context ctx, String tag) {
return super.placeholder(ctx, tag);
}
*/
});


please and please add this future to library
it's very useful
thanks a lot
 

phukol

Active Member
Licensed User
Longtime User
hi guys can anyone tell me how i could get the Click event when i click the Profile image or icon in MSProfile
 
Top