android imageview onClick animation

后端 未结 4 1680
生来不讨喜
生来不讨喜 2021-01-30 17:24

I guess this is kind of an odd question but I have tried setting onClicklistener on an ImageView and it has worked. But the problem is that the user cannot sense the click. I me

4条回答
  •  耶瑟儿~
    2021-01-30 18:04

    anim/anim_item.xml

    
    
      
      
    
    

    And add:

    myView.startAnimation(AnimationUtils.loadAnimation(context, R.anim.anim_item));
    

提交回复
热议问题