How to create ImageView pulse effect using nine old androids animation

后端 未结 3 1448
悲哀的现实
悲哀的现实 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:33

    to use @ Matthias Robbers solution directly from the XML, you can do the following: create 2 files:

    1- pulse.xml

    
    
        
    
    

    2- pulse_layout_animation.xml

    
    
    
    

    then in your layout xml file just add this animation to any view you need, for example:

    
    

提交回复
热议问题