How to remove material shadow from ToggleButton?

ToggleButton manages its elevation and translationZ with included state list animator. You can disable it by setting:

android:stateListAnimator="@null"

or by providing your own selector to handle these values:

android:stateListAnimator="@drawable/my_selector"

Try to use style="@android:style/Widget.Holo.Button.Borderless

Change the widget to appcompat (or whatever you are using).

I am using this:

style="?android:attr/borderlessButtonStyle"