File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88----
99This repository also contains a demo project.
1010
11- ![ Demo] ( https://raw.githubusercontent.com/Blogcat/Android-ExpandableTextView/release/1.0.0 /demo.gif )
11+ ![ Demo] ( https://raw.githubusercontent.com/Blogcat/Android-ExpandableTextView/release/1.0.1 /demo.gif )
1212
1313Add dependency
1414--------------
@@ -32,7 +32,7 @@ library dependency
3232
3333``` groovy
3434 dependencies {
35- compile ('at.blogc:expandabletextview:1.0.0 @aar')
35+ compile ('at.blogc:expandabletextview:1.0.1 @aar')
3636 }
3737```
3838
@@ -77,6 +77,13 @@ final Button buttonToggle = (Button) this.findViewById(R.id.button_toggle);
7777// set animation duration via code, but preferable in your layout files by using the animation_duration attribute
7878expandableTextView. setAnimationDuration(1000L );
7979
80+ // set interpolators for both expanding and collapsing animations
81+ expandableTextView. setInterpolator(new OvershootInterpolator ());
82+
83+ // or set them separately
84+ expandableTextView. setExpandInterpolator(new OvershootInterpolator ());
85+ expandableTextView. setCollapseInterpolator(new OvershootInterpolator ());
86+
8087// toggle the ExpandableTextView
8188buttonToggle. setOnClickListener(new View .OnClickListener ()
8289{
You can’t perform that action at this time.
0 commit comments