最佳答案
使用 API21 + Toolbar
:
// Toolbar
Toolbar toolbar = new Toolbar(this);
toolbar.showOverflowMenu();
想要完全移除它的阴影。 setElevation(0)
不做任何事情,因为 getElevation()
已经返回 0
。
材料设计参考:
Https://material.io/guidelines/layout/structure.html#structure-toolbars
参考文献:
Https://developer.android.com/reference/android/widget/toolbar.html
但我没看到任何与影子有关的信息
问: 强 > 如何完全去除/隐藏 Toolbar
阴影?