From 9ce9913250cb1122f879cb4a59227c02b42075f7 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 7 Oct 2013 15:35:48 +0200 Subject: Fix animation --- src/de/blinkt/openvpn/LogWindow.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/de') diff --git a/src/de/blinkt/openvpn/LogWindow.java b/src/de/blinkt/openvpn/LogWindow.java index e21c62b1..11becf9c 100644 --- a/src/de/blinkt/openvpn/LogWindow.java +++ b/src/de/blinkt/openvpn/LogWindow.java @@ -427,12 +427,12 @@ public class LogWindow extends ListActivity implements StateListener, SeekBar.On ObjectAnimator anim; if (optionsVisible) { - anim = ObjectAnimator.ofInt(mOptionsLayout,"alpha",0, mOptionsLayout.getHeight()); + anim = ObjectAnimator.ofFloat(mOptionsLayout,"alpha",1.0f, 0f); anim.addListener(collapseListener); } else { mOptionsLayout.setVisibility(View.VISIBLE); - anim = ObjectAnimator.ofInt(mOptionsLayout,"alpha", mOptionsLayout.getHeight(),0); + anim = ObjectAnimator.ofFloat(mOptionsLayout,"alpha", 0f, 1.0f); //anim = new TranslateAnimation(0.0f, 0.0f, mOptionsLayout.getHeight(), 0.0f); } -- cgit v1.2.3