If you want to disable the effect directly in the layout XML resource, you can use:
android:overScrollMode="never"
This is effectively equivalent to Coeffect.
The advantage of this in the XML file, and not in the Java code, is that you do not need to create a view identifier to disable the effect. In Java, you will need an ID to get a view link to turn off the effect, while in xml you can directly use the above attribute without having to create an identifier.
source share