mikepenz / MaterialDrawer

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
https://mikepenz.dev
Apache License 2.0
11.68k stars 2.05k forks source link

how to remove shadow (elevation) of ProfileDrawerItem #2751

Closed SumitTasgave closed 3 years ago

SumitTasgave commented 3 years ago

img n

About this issue

new ProfileDrawerItem().withName(getString(R.string.app_name)) .withEmail(saveduserid) .withIcon(getResources().getDrawable(R.drawable.acledalogo));

im using this code to set profile

Details

com.mikepenz:materialdrawer:6.1.2 uploaded 2 images 1. with shadow , 2. withount shadow img

mikepenz commented 3 years ago

There's currently no way to directly do this in the library. You can copy over the material_drawer_header.xml (keep the name) and change the elevation of the profile icon to be 0dp instead: https://github.com/mikepenz/MaterialDrawer/blob/develop/materialdrawer/src/main/res/layout/material_drawer_header.xml#L35