forked from emilsjolander/StickyListHeaders
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
sample/src/se/emilsjolander/stickylistheaders/sample/ExpandableListTestActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |