Skip to content

Commit 916cc6c

Browse files
committed
update animation duration
1 parent 4647538 commit 916cc6c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/at/blogc/android/activities/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected void onCreate(Bundle savedInstanceState)
3838
final Button buttonToggle = (Button) this.findViewById(R.id.button_toggle);
3939

4040
// set animation duration via code, but preferable in your layout files by using the animation_duration attribute
41-
expandableTextView.setAnimationDuration(1000L);
41+
expandableTextView.setAnimationDuration(750L);
4242

4343
// toggle the ExpandableTextView
4444
buttonToggle.setOnClickListener(new View.OnClickListener()

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
android:text="@string/lorem_ipsum"
3434
android:maxLines="5"
3535
android:ellipsize="end"
36-
app:animation_duration="1000"/>
36+
app:animation_duration="750"/>
3737

3838
<Button
3939
android:id="@+id/button_toggle"

0 commit comments

Comments
 (0)