Closed yuaneko95 closed 1 year ago
here is my code
I'm still confused about how to change the ripple color
Check how the theme overlay is applied in https://github.com/skydoves/PowerMenu/blob/main/app/src/main/java/com/skydoves/powermenudemo/PowerMenuUtils.java#L143
inseatd of calling requireActivity()
use a styled context and add your ripple colour to PopupCardThemeOverlay
in https://github.com/skydoves/PowerMenu/blob/main/app/src/main/res/values/styles.xml#L36
<style name="PopupCardThemeOverlay">
<item name="materialCardViewStyle">@style/PopupCardStyle</item>
<item name="colorControlHighlight">#0ff</item>
</style>
Did it solve your problem?
yes it's solve my problem. thanks
How are you building your menu? I you are using Material, the ripple should come from
colorControlHighlight
theme attribute which you could add here https://github.com/skydoves/PowerMenu/blob/main/app/src/main/res/values/styles.xml#L36 inPopupCardThemeOverlay