android Programming Glossary: mlayoutweightsum
How does one Animate Layout properties of ViewGroups? http://stackoverflow.com/questions/7519479/how-does-one-animate-layout-properties-of-viewgroups private boolean mAnimating false private boolean mLeftExpand true private float mLeftStartWeight private float mLayoutWeightSum private Handler mAnimationHandler new Handler private long mAnimationTime private Runnable mAnimationStep new Runnable @Override.. float animationStep currentTime mAnimationTime 1f ANIMATION_DURATION float weightOffset animationStep mLayoutWeightSum mLeftStartWeight LinearLayout.LayoutParams leftParams LinearLayout.LayoutParams mLeftView.getLayoutParams LinearLayout.LayoutParams.. mLeftExpand weightOffset weightOffset rightParams.weight mLeftExpand weightOffset weightOffset if leftParams.weight mLayoutWeightSum mAnimating false leftParams.weight mLayoutWeightSum rightParams.weight 0 else if leftParams.weight mLeftStartWeight..
|