Code example for AnimationSet

Methods: start

0
            @Override 
            public void onClick (View view) {
                touchShield.setVisibility(View.VISIBLE);
                pointer.setAnimation(animationSet);
                pointer.setVisibility(View.VISIBLE);
                animationSet.start();
            } 
        }); 
    } 
 
    @Override 
    public View onCreateView (String name, Context context, AttributeSet attrs) {
        return super.onCreateView(name, context,attrs);
    } 
 
    @Override 
    public void onWindowFocusChanged (boolean hasFocus) {
        super.onWindowFocusChanged(hasFocus);
        if (hasFocus){
            if (animationSet == null){
                buildPointerAnimationSet();