How can I give an imageview click effect like a button on Android?

前端 未结 30 2249
情歌与酒
情歌与酒 2020-11-28 01:50

I have imageview in my Android app that I am using like a button with the onClick event given, but as you might guess it is not giving imageview a clickable effect when clic

30条回答
  •  孤城傲影
    2020-11-28 02:11

    Use style="?android:borderlessButtonStyle" in the XML file. It will show the Android default click effect.

    
    

提交回复
热议问题