您的位置:首页 > 移动开发 > Android开发

小问题记录

2016-06-27 17:31 351 查看
CollapsingToolbarLayout的Toolbar折叠起来以后,按钮没有ripple效果

网页:https://code.google.com/p/android/issues/detail?id=176431

解决:The workaround also didn’t work for me (Doesn’t even work with the supplied sample code). The best strategy I came up till now is to set the background of the Toolbar to transparent:

<android.support.v7.widget.Toolbar

...

android:background="@android:color/transparent"/>


This enables the ripple effect (cropped to the Actionbar heigth) in expanded/collapsed/intermediate state.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  安卓 Android Toolbar