mikepenz/MaterialDrawer

how to remove shadow (elevation) of ProfileDrawerItem

SumitTasgave opened this issue · 1 comments

img n

About this issue

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

im using this code to set profile

Details

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

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