File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ An expandable TextView for Android applications (4.0+).
44
55Add dependency
66--------------
7- This library is not yet released in Maven Central, but instead you can use [ Bintray] ( https://www.bintray.com )
7+ This library is not yet released in Maven Central, but instead you can use [ Bintray] ( https://www.bintray.com ) .
88
99``` groovy
1010 repositories {
@@ -60,6 +60,9 @@ In your Activity or Fragment:
6060final ExpandableTextView expandableTextView = (ExpandableTextView ) this . findViewById(R . id. expandableTextView);
6161final Button buttonToggle = (Button ) this . findViewById(R . id. button_toggle);
6262
63+ // set animation duration via code, but preferable in your layout files by using the animation_duration attribute
64+ expandableTextView. setAnimationDuration(1000L );
65+
6366// toggle the ExpandableTextView
6467buttonToggle. setOnClickListener(new View .OnClickListener ()
6568{
You can’t perform that action at this time.
0 commit comments