Code example for AbsoluteLayout

Methods: removeView

0
		this.setVisibility(View.INVISIBLE);
		Log.i("value","disappearing");
		//this.setAlpha(1f); 
		this.setWidth(0);
		this.setHeight(0);
		myLayout.removeView(this);
		AnimatorSet reduction= new AnimatorSet();
		ObjectAnimator growX=ObjectAnimator.ofFloat(this, "x", xx+Math.abs(MYWIDTH-REDUCEDWIDTH)/2, xx+REDUCEDWIDTH/2);
		ObjectAnimator growY=ObjectAnimator.ofFloat(this, "y", yy+Math.abs(MYWIDTH-REDUCEDWIDTH)/2, yy+REDUCEDWIDTH/2);
		ObjectAnimator growW=ObjectAnimator.ofInt(this, "width", REDUCEDWIDTH,0);
		ObjectAnimator growH=ObjectAnimator.ofInt(this, "height",REDUCEDWIDTH,0);
		ObjectAnimator al=ObjectAnimator.ofFloat(this, "alpha", 1.0f,0.0f);
		growH.setDuration(150);growY.setDuration(150);growX.setDuration(150);growW.setDuration(150);
		al.setDuration(150);
		reduction.playTogether(growH,growW,growX,growY,al);
		 
		reduction.addListener(new AnimatorListener() {
			@Override 
			public void onAnimationStart(Animator animation) {
			} 
			@Override