Code example for AlphaAnimation

Methods: setDurationsetRepeatCountsetRepeatModesetStartOffset

0
			} 
		} 
	 
		public void blink(){ 
 
			Animation anim = new AlphaAnimation(0.0f, 1.0f);
			anim.setDuration(100); //You can manage the time of the blink with this parameter
			anim.setStartOffset(25);
			anim.setRepeatMode(Animation.REVERSE);
			anim.setRepeatCount(Animation.INFINITE);
			display.startAnimation(anim);
 
		} 
		 
		class Sliding extends AsyncTask<TextView, Integer, String>{
 
			@Override 
			protected String doInBackground(TextView... params) {
				Display screenInfo = getWindowManager().getDefaultDisplay();
				@SuppressWarnings("deprecation") 
Experience pair programming with AI  Get Codota for Java