diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-10-07 15:35:48 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-10-07 15:35:48 +0200 |
commit | 9ce9913250cb1122f879cb4a59227c02b42075f7 (patch) | |
tree | 49487b03393bfa320d5a52eb5a938a624664c692 /src | |
parent | 967caeefc314e4f5b944b0e90c47f1f3b09f5a27 (diff) |
Fix animation
Diffstat (limited to 'src')
-rw-r--r-- | src/de/blinkt/openvpn/LogWindow.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |