CopyPastor

Detecting plagiarism made easy.

Score: 0.83540248484134; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2020-03-31
by Divyang Panchal

Original Post

Original - Posted on 2012-07-15
by Guy Cothal



            
Present in both answers; Present only in the new answer; Present only in the old answer;

protected AlphaAnimation fadeIn = new AlphaAnimation(0.0f , 1.0f ) ; protected AlphaAnimation fadeOut = new AlphaAnimation( 1.0f , 0.0f ) ; txtView.startAnimation(fadeIn); txtView.startAnimation(fadeOut); fadeIn.setDuration(1200); fadeIn.setFillAfter(true); fadeOut.setDuration(1200); fadeOut.setFillAfter(true); fadeOut.setStartOffset(4200+fadeIn.getStartOffset());
Works perfectly for white backgrounds. Otherwise, you need to switch values when you instantiate AlphaAnimation class. Like this:
AlphaAnimation fadeIn = new AlphaAnimation( 1.0f , 0.0f ); AlphaAnimation fadeOut = new AlphaAnimation(0.0f , 1.0f );




protected AlphaAnimation fadeIn = new AlphaAnimation(0.0f , 1.0f ) ; protected AlphaAnimation fadeOut = new AlphaAnimation( 1.0f , 0.0f ) ; txtView.startAnimation(fadeIn); txtView.startAnimation(fadeOut); fadeIn.setDuration(1200); fadeIn.setFillAfter(true); fadeOut.setDuration(1200); fadeOut.setFillAfter(true); fadeOut.setStartOffset(4200+fadeIn.getStartOffset()); Works perfectly for white backgrounds. Otherwise, you need to switch values when you instantiate `AlphaAnimation` class. Like this:
AlphaAnimation fadeIn = new AlphaAnimation( 1.0f , 0.0f ); AlphaAnimation fadeOut = new AlphaAnimation(0.0f , 1.0f );
This works with black background and white text color.

        
Present in both answers; Present only in the new answer; Present only in the old answer;