android Programming Glossary: applytransformation
How to apply 3d transition between two activities in android? http://stackoverflow.com/questions/11069250/how-to-apply-3d-transition-between-two-activities-in-android parentHeight mCamera new Camera @Override protected void applyTransformation float interpolatedTime Transformation t final float fromDegrees..
How can I make a cell in a ListView in Android expand and contract vertically when it's touched? http://stackoverflow.com/questions/12522348/how-can-i-make-a-cell-in-a-listview-in-android-expand-and-contract-vertically-wh 0 view.setVisibility View.VISIBLE @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation.. float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f Calculating the..
Making a ListAdapter-recycleable Resizable View http://stackoverflow.com/questions/14128018/making-a-listadapter-recycleable-resizable-view with the animation not used here @Override protected void applyTransformation float interpolatedTime Transformation t getLayoutParams .height..
Displaying card flip animation on old android http://stackoverflow.com/questions/16030667/displaying-card-flip-animation-on-old-android height 2 camera new Camera @Override protected void applyTransformation float interpolatedTime Transformation t Angle around the y.. with a smooth scale to flip change this part of code to applyTransformation final Matrix matrix t.getMatrix camera.save camera.translate..
Making a ViewFlipper like the Home Screen using MotionEvent.ACTION_MOVE http://stackoverflow.com/questions/2600916/making-a-viewflipper-like-the-home-screen-using-motionevent-action-move hb HEAD and said I should refer to the applyTransformation method for hints on how to do this but I don't know how to repeat..
How do I animate View.setVisibility(GONE) http://stackoverflow.com/questions/2634073/how-do-i-animate-view-setvisibilitygone Animation class based on ScaleAnimation and overriding the applyTransformation method to set new margins and update the layout. Like this..... height @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation.. float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f int newMarginBottom..
Android: Expand/collapse animation http://stackoverflow.com/questions/4946295/android-expand-collapse-animation a new Animation int initialHeight @Override protected void applyTransformation float interpolatedTime Transformation t final int newHeight.. Animation a new Animation @Override protected void applyTransformation float interpolatedTime Transformation t v.getLayoutParams .height.. Animation a new Animation @Override protected void applyTransformation float interpolatedTime Transformation t if interpolatedTime..
How to implement expandable panels in Android? http://stackoverflow.com/questions/5165682/how-to-implement-expandable-panels-in-android endHeight startHeight @Override protected void applyTransformation float interpolatedTime Transformation t android.view.ViewGroup.LayoutParams.. endHeight startHeight @Override protected void applyTransformation float interpolatedTime Transformation t android.view.ViewGroup.LayoutParams..
TextView expand animation like in Android Market http://stackoverflow.com/questions/5927977/textview-expand-animation-like-in-android-market finishHeight setDuration 220 @Override protected void applyTransformation float interpolatedTime Transformation t final int newHeight..
Resizing layouts programatically (as animation) http://stackoverflow.com/questions/8140571/resizing-layouts-programatically-as-animation fromWidth mView v setDuration 300 @Override protected void applyTransformation float interpolatedTime Transformation t float height mToHeight..
Android sidebar like facebook or firefox [duplicate] http://stackoverflow.com/questions/8453320/android-sidebar-like-facebook-or-firefox The magic happens in the animation protected void applyTransformation float interpolatedTime Transformation t int newOffset if expanded..
Slide down effect on ExpandableListView http://stackoverflow.com/questions/8780292/slide-down-effect-on-expandablelistview .height 0 @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation.. float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f if mStartVisibility..
Android animate drop down/up view proper http://stackoverflow.com/questions/9248930/android-animate-drop-down-up-view-proper View.VISIBLE @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation.. float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f if mType 0 mAnimatedView.getLayoutParams..
Android: How to do this framing paint? http://stackoverflow.com/questions/9748206/android-how-to-do-this-framing-paint
How to apply 3d transition between two activities in android? http://stackoverflow.com/questions/11069250/how-to-apply-3d-transition-between-two-activities-in-android int parentHeight super.initialize width height parentWidth parentHeight mCamera new Camera @Override protected void applyTransformation float interpolatedTime Transformation t final float fromDegrees mFromDegrees float degrees fromDegrees mToDegrees fromDegrees..
How can I make a cell in a ListView in Android expand and contract vertically when it's touched? http://stackoverflow.com/questions/12522348/how-can-i-make-a-cell-in-a-listview-in-android-expand-and-contract-vertically-wh mMarginEnd mMarginStart 0 0 view.getHeight 0 view.setVisibility View.VISIBLE @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f Calculating.. View.VISIBLE @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f Calculating the new bottom margin and setting it mViewLayoutParams.bottomMargin..
Making a ListAdapter-recycleable Resizable View http://stackoverflow.com/questions/14128018/making-a-listadapter-recycleable-resizable-view the set interpolator @param t the transformation associated with the animation not used here @Override protected void applyTransformation float interpolatedTime Transformation t getLayoutParams .height startHeight int deltaHeight interpolatedTime requestLayout..
Displaying card flip animation on old android http://stackoverflow.com/questions/16030667/displaying-card-flip-animation-on-old-android width height parentWidth parentHeight centerX width 2 centerY height 2 camera new Camera @Override protected void applyTransformation float interpolatedTime Transformation t Angle around the y axis of the rotation at the given time calculated both in radians.. Felipe Menezes answer below . if you want the animation with a smooth scale to flip change this part of code to applyTransformation final Matrix matrix t.getMatrix camera.save camera.translate 0 0 Math.abs degrees 2 camera.getMatrix matrix camera.rotateY..
Making a ViewFlipper like the Home Screen using MotionEvent.ACTION_MOVE http://stackoverflow.com/questions/2600916/making-a-viewflipper-like-the-home-screen-using-motionevent-action-move animation TranslateAnimation.java h d2ff754ac327dda0fe35e610752abb78904fbb66 hb HEAD and said I should refer to the applyTransformation method for hints on how to do this but I don't know how to repeat this same behavior. android animation viewflipper share..
How do I animate View.setVisibility(GONE) http://stackoverflow.com/questions/2634073/how-do-i-animate-view-setvisibilitygone view is getting smaller. So I'd recommend creating your own Animation class based on ScaleAnimation and overriding the applyTransformation method to set new margins and update the layout. Like this... public class Q2634073 extends Activity implements OnClickListener.. height mMarginBottomToY int 0 height toY mLayoutParams.bottomMargin height @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f int newMarginBottom.. height @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f int newMarginBottom mMarginBottomFromY int mMarginBottomToY mMarginBottomFromY..
Android: Expand/collapse animation http://stackoverflow.com/questions/4946295/android-expand-collapse-animation v2 at the same time. I tried something like this Animation a new Animation int initialHeight @Override protected void applyTransformation float interpolatedTime Transformation t final int newHeight int initialHeight interpolatedTime v.getLayoutParams .height.. v.getLayoutParams .height 0 v.setVisibility View.VISIBLE Animation a new Animation @Override protected void applyTransformation float interpolatedTime Transformation t v.getLayoutParams .height interpolatedTime 1 LayoutParams.WRAP_CONTENT int targtetHeight.. collapse final View v final int initialHeight v.getMeasuredHeight Animation a new Animation @Override protected void applyTransformation float interpolatedTime Transformation t if interpolatedTime 1 v.setVisibility View.GONE else v.getLayoutParams .height..
How to implement expandable panels in Android? http://stackoverflow.com/questions/5165682/how-to-implement-expandable-panels-in-android int startHeight int endHeight mStartHeight startHeight mDeltaHeight endHeight startHeight @Override protected void applyTransformation float interpolatedTime Transformation t android.view.ViewGroup.LayoutParams lp mContent.getLayoutParams lp.height int.. int startHeight int endHeight mStartHeight startHeight mDeltaHeight endHeight startHeight @Override protected void applyTransformation float interpolatedTime Transformation t android.view.ViewGroup.LayoutParams lp mContent.getLayoutParams lp.height int..
TextView expand animation like in Android Market http://stackoverflow.com/questions/5927977/textview-expand-animation-like-in-android-market finishHeight _view view _startHeight startHeight _finishHeight finishHeight setDuration 220 @Override protected void applyTransformation float interpolatedTime Transformation t final int newHeight int _finishHeight _startHeight interpolatedTime _startHeight..
Resizing layouts programatically (as animation) http://stackoverflow.com/questions/8140571/resizing-layouts-programatically-as-animation toHeight mToWidth toWidth mFromHeight fromHeight mFromWidth fromWidth mView v setDuration 300 @Override protected void applyTransformation float interpolatedTime Transformation t float height mToHeight mFromHeight interpolatedTime mFromHeight float width mToWidth..
Android sidebar like facebook or firefox [duplicate] http://stackoverflow.com/questions/8453320/android-sidebar-like-facebook-or-firefox .xml are simple LinearLayouts with a heading and a listview. The magic happens in the animation protected void applyTransformation float interpolatedTime Transformation t int newOffset if expanded newOffset 0 newOffset int endOffset 1 interpolatedTime..
Slide down effect on ExpandableListView http://stackoverflow.com/questions/8780292/slide-down-effect-on-expandablelistview mAnimatedView.setVisibility View.VISIBLE mAnimatedView.getLayoutParams .height 0 @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f if mStartVisibility.. .height 0 @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f if mStartVisibility View.GONE mStartVisibility View.INVISIBLE mAnimatedView.getLayoutParams..
Android animate drop down/up view proper http://stackoverflow.com/questions/9248930/android-animate-drop-down-up-view-proper if mType 0 mAnimatedView.getLayoutParams .height 0 mAnimatedView.setVisibility View.VISIBLE @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f if mType.. View.VISIBLE @Override protected void applyTransformation float interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f if mType 0 mAnimatedView.getLayoutParams .height int mEndHeight interpolatedTime..
Android: How to do this framing paint? http://stackoverflow.com/questions/9748206/android-how-to-do-this-framing-paint
|