Code example for TransitionDrawable

Methods: reverseTransition

0
	public boolean onTouchEvent(MotionEvent me) {
		 
		if(me.getAction() == MotionEvent.ACTION_DOWN){
			t.startTransition(10);
		}else if(me.getAction() == MotionEvent.ACTION_UP){
			t.reverseTransition(100);
		} 
		 
		return super.onTouchEvent(me);
		 
	} 
 
}