I am using an ImageButton. But I don get the highlight when clicked. I googled and many suggested to use selector where another image is displayed. Is there any way
ImageButton
You can simply use android:foreground for your View to achieve clickable effect:
android:foreground
View
android:foreground="?android:attr/selectableItemBackground"
For use with dark theme add also theme to your layout (to make clickable effect clear):
layout
android:theme="@android:style/ThemeOverlay.Material.Dark"