Android ActionBar vs ToolBar

戏子无情 提交于 2021-02-11 00:49:12

问题


Can you make Android new Toolbar to be shown with shadow like you could do with the old ActionBar?

Please refer to the image: Left is ActionBar and you can see it looks "floating" with shadow while the right one is ToolBar, how can you show it the same?

Toolbar vs ActionBar


回答1:


Use attibute android:elevetion=4dp on toolbar.



来源:https://stackoverflow.com/questions/29829746/android-actionbar-vs-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!