How to make the textview blinking

前端 未结 11 2072
谎友^
谎友^ 2020-12-02 09:14

Guys i have a textview which i need it to be blinking please help me with it.



        
11条回答
  •  死守一世寂寞
    2020-12-02 09:55

    Don't need set for this. Just alpha:

    anim/flash_leave_now.xml

        
        
    

    And in code:

    mTextView.setAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.flash_leave_now));
    

提交回复
热议问题