Skip to content

Commit 64b40cf

Browse files
committed
Update README.md
1 parent 595ae44 commit 64b40cf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ An expandable TextView for Android applications (4.0+).
44

55
Add 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:
6060
final ExpandableTextView expandableTextView = (ExpandableTextView) this.findViewById(R.id.expandableTextView);
6161
final 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
6467
buttonToggle.setOnClickListener(new View.OnClickListener()
6568
{

0 commit comments

Comments
 (0)