如何在Android操作栏上创建大小效果?

如何在Android操作栏上创建大小效果?,android,styles,android-actionbar,Android,Styles,Android Actionbar,我想在动作栏上重现谷歌音乐提供的尺寸效果: getActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.ab_background)); 有人有想法复制它吗?我的解决方案: 1) 下载此drawable并将其放入drawable xhdpi文件夹: 2) 并更改操作栏的背景: getActionBar().setBackgroundDrawable(getResources().getDrawable

我想在动作栏上重现谷歌音乐提供的尺寸效果:

getActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.ab_background));


有人有想法复制它吗?我的解决方案:

1) 下载此drawable并将其放入
drawable xhdpi
文件夹:

2) 并更改操作栏的背景:

getActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.ab_background));

转到操作栏/夏洛克图书馆大小效果是操作栏下的阴影。