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);
Get the appbarlayout in code:
var appbarLayout = findviewbyid(resource.id. );
set the property
appbarLayout.StateListAnimator=null;