Background Ripple Effect on StandAlone Toolbar items is gone

前端 未结 6 516
遥遥无期
遥遥无期 2020-12-10 01:46

Using the Standalone toolbar has an issue with the select able background of the items, following this article didn\'t work also:

http://blog.mohitkanwal.com/blog/20

6条回答
  •  攒了一身酷
    2020-12-10 02:04

    Chris Bane answer on the original issue:

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

    This is because by default ?attr/actionBarItemBackground is an unbounded RippleDrawable, which means that it projects/draws onto the next parent. In this case, this is the CollapsingToolbarLayout which you can't actually see.

    There's not much we can do here from a library perspective. The 'workaround' is to set actionBarItemBackground to not be borderless:

    
    
    
    

提交回复
热议问题