Skip to content

Commit

Permalink
add ExpandableListTestActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
lsjwzh committed Jul 3, 2014
1 parent 3208d9c commit b0dda31
Showing 1 changed file with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package se.emilsjolander.stickylistheaders.sample;

/**
* Created by panwenye on 14-6-14.
*/
public class ExpandableListTestActivity {
// final ViewGroup.LayoutParams lp = target.getLayoutParams();
//
// float animStartY = type == ANIMATION_EXPAND ? 0f : viewHeight;
// float animEndY = type == ANIMATION_EXPAND ? viewHeight : 0f;
// ValueAnimator animator = ValueAnimator.ofFloat(animStartY, animEndY);
// animator.setDuration(200);
// animator.addListener(new Animator.AnimatorListener() {
// @Override
// public void onAnimationStart(Animator animator) {
// if (type == ExpandCollapseAnimation.EXPAND) {
// target.setVisibility(View.VISIBLE);
// }
// }
//
// @Override
// public void onAnimationEnd(Animator animator) {
// if (type == ExpandCollapseAnimation.EXPAND) {
// target.setVisibility(View.VISIBLE);
// } else {
// target.setVisibility(View.GONE);
// }
// target.getLayoutParams().height = viewHeight;
// }
//
// @Override
// public void onAnimationCancel(Animator animator) {
//
// }
//
// @Override
// public void onAnimationRepeat(Animator animator) {
//
// }
// });
// animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
// @Override
// public void onAnimationUpdate(ValueAnimator valueAnimator) {
// lp.height = ((Float) valueAnimator.getAnimatedValue()).intValue();
// target.setLayoutParams(lp);
// target.requestLayout();
// }
// });
// animator.start();
}

0 comments on commit b0dda31

Please sign in to comment.