¡@

Home 

2014/10/16 ¤W¤È 08:18:30

android Programming Glossary: manimatedview

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

depending on the current state of the view @author Udinic public class ExpandAnimation extends Animation private View mAnimatedView private LayoutParams mViewLayoutParams private int mMarginStart mMarginEnd private boolean mIsVisibleAfter false private.. @param duration The duration of the animation in ms public ExpandAnimation View view int duration setDuration duration mAnimatedView view mViewLayoutParams LayoutParams view.getLayoutParams decide to show or hide the view mIsVisibleAfter view.getVisibility.. int mMarginEnd mMarginStart interpolatedTime Invalidating the layout making us seeing the changes we made mAnimatedView.requestLayout Making sure we didn't run the ending before it happens else if mWasEndedAlready mViewLayoutParams.bottomMargin..

Slide down effect on ExpandableListView

http://stackoverflow.com/questions/8780292/slide-down-effect-on-expandablelistview

and expand animations. @author Esben Gaarsmand public class ExpandCollapseAnimation extends Animation private View mAnimatedView private int mEndHeight private int mStartVisibility Initializes expand collapse animation. If the passed view is invisible.. view The view to animate @param duration public ExpandCollapseAnimation View view int duration setDuration duration mAnimatedView view mEndHeight mAnimatedView.getLayoutParams .height mStartVisibility mAnimatedView.getVisibility if mStartVisibility View.GONE.. 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..

Android animate drop down/up view proper

http://stackoverflow.com/questions/9248930/android-animate-drop-down-up-view-proper

and expand animations. @author Esben Gaarsmand public class ExpandCollapseAnimation extends Animation private View mAnimatedView private int mEndHeight private int mType Initializes expand collapse animation has two types collapse 1 and expand 0 ... will collapse view and set to 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.. 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..