I used supprtLibrary to add ripple on an imageView.
I saw a post where they set the ripple effect using background attribute and another where they set the foreground attribute.
android:background="?attr/selectableItemBackground"
android:foreground="?attr/selectableItemBackground"
Both ways are ok? same effect?