android Programming Glossary: manimatedview.getlayoutparams
Slide down effect on ExpandableListView http://stackoverflow.com/questions/8780292/slide-down-effect-on-expandablelistview setDuration duration mAnimatedView view mEndHeight mAnimatedView.getLayoutParams .height mStartVisibility mAnimatedView.getVisibility if mStartVisibility.. View.INVISIBLE mAnimatedView.setVisibility View.VISIBLE mAnimatedView.getLayoutParams .height 0 @Override protected void applyTransformation float.. View.GONE mStartVisibility View.INVISIBLE mAnimatedView.getLayoutParams .height int mEndHeight interpolatedTime else mAnimatedView.getLayoutParams..
Android animate drop down/up view proper http://stackoverflow.com/questions/9248930/android-animate-drop-down-up-view-proper type setDuration duration mAnimatedView view mEndHeight mAnimatedView.getLayoutParams .height mType type if mType 0 mAnimatedView.getLayoutParams.. .height mType type if mType 0 mAnimatedView.getLayoutParams .height 0 mAnimatedView.setVisibility View.VISIBLE @Override.. interpolatedTime t if interpolatedTime 1.0f if mType 0 mAnimatedView.getLayoutParams .height int mEndHeight interpolatedTime else mAnimatedView.getLayoutParams..
Slide down effect on ExpandableListView http://stackoverflow.com/questions/8780292/slide-down-effect-on-expandablelistview duration public ExpandCollapseAnimation View view int duration setDuration duration mAnimatedView view mEndHeight mAnimatedView.getLayoutParams .height mStartVisibility mAnimatedView.getVisibility if mStartVisibility View.GONE mStartVisibility View.INVISIBLE mAnimatedView.setVisibility.. if mStartVisibility View.GONE mStartVisibility View.INVISIBLE 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 View.GONE mStartVisibility View.INVISIBLE mAnimatedView.getLayoutParams .height int mEndHeight interpolatedTime else mAnimatedView.getLayoutParams .height mEndHeight int mEndHeight interpolatedTime..
Android animate drop down/up view proper http://stackoverflow.com/questions/9248930/android-animate-drop-down-up-view-proper gone public ExpandCollapseAnimation View view int duration int type setDuration duration mAnimatedView view mEndHeight mAnimatedView.getLayoutParams .height mType type if mType 0 mAnimatedView.getLayoutParams .height 0 mAnimatedView.setVisibility View.VISIBLE @Override.. type setDuration duration mAnimatedView view mEndHeight mAnimatedView.getLayoutParams .height mType type if mType 0 mAnimatedView.getLayoutParams .height 0 mAnimatedView.setVisibility View.VISIBLE @Override protected void applyTransformation float interpolatedTime.. interpolatedTime Transformation t super.applyTransformation interpolatedTime t if interpolatedTime 1.0f if mType 0 mAnimatedView.getLayoutParams .height int mEndHeight interpolatedTime else mAnimatedView.getLayoutParams .height mEndHeight int mEndHeight interpolatedTime..
|