Hi i would like to remove the elevation and shadow effect from my toolbar for API 21 and greater. Below is what i have tried
setSupportActionBar(mToolbar);
Just remove this part of you layout hierarchy:
It's responsible for creating shadow. Toolbar itself doesn't cast any shadow.