Code example for AlphaAnimation

Methods: setAnimationListenersetDuration

0
			mBlockedCookiesViewShowing = true;
			mBlockedCookiesView.setVisibility(View.VISIBLE);
			a = new AlphaAnimation(0.0f, 1.0f);
		} else { 
			mBlockedCookiesViewShowing = false;
			a = new AlphaAnimation(1.0f, 0.0f);
			a.setAnimationListener(this);
		} 
		 
		a.setDuration(ANIMATION_DURATION);
		mBlockedCookiesView.startAnimation(a);
	} 
	 
	/** 
	 * Tell the webview if there are blocked cookies 
	 * @param cookies 
	 */ 
	public void setBlockedCookies(boolean cookies) {
		this.mBlockedCookies = cookies;
		updateBlockedCookiesView(); 
Stop searching for code, let great code find you!  Add Codota to your java IDE