How to create ImageView pulse effect using nine old androids animation

后端 未结 3 1445
悲哀的现实
悲哀的现实 2021-01-30 08:57

I wonder how I should create a pulse effect using nine olad androids framework animation.

To understand better lets say you have an ImageView and want to have a \"pulse\

3条回答
  •  孤街浪徒
    2021-01-30 09:38

    R.anim.pulse:

    
    
    ImageView imageView = (ImageView) findViewById(R.id.image);
    Animation pulse = AnimationUtils.loadAnimation(this, R.anim.pulse);
    imageView.startAnimation(pulse);
    

提交回复
热议问题