Materialdrawer: How to listen on profile image click?

Created on 8 Sep 2015  路  5Comments  路  Source: mikepenz/MaterialDrawer

question

Most helpful comment

https://github.com/mikepenz/MaterialDrawer#add-profiles-and-an-accountheader

This will be triggered when a new profile is selected

.withOnAccountHeaderListener(new AccountHeader.OnAccountHeaderListener() {
        @Override
        public boolean onProfileChanged(View view, IProfile profile, boolean currentProfile) {
            return false;
        }
    })

All 5 comments

https://github.com/mikepenz/MaterialDrawer#add-profiles-and-an-accountheader

This will be triggered when a new profile is selected

.withOnAccountHeaderListener(new AccountHeader.OnAccountHeaderListener() {
        @Override
        public boolean onProfileChanged(View view, IProfile profile, boolean currentProfile) {
            return false;
        }
    })

But I meant how to find out, that user clicked on user image in navigation header. Not in list of profiles.

Sorry, it is working... my fault!

no problem ;)

Sorry, it is working... my fault!

How did you get it work please?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlexMercier picture AlexMercier  路  3Comments

Ahmed-Emad picture Ahmed-Emad  路  4Comments

jehad-suliman picture jehad-suliman  路  3Comments

ghost picture ghost  路  3Comments

meness picture meness  路  3Comments